From 5ccd5c7a46b5a72fa79603dcb3173670c7f05dcf Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Catoire Date: Fri, 17 Apr 2026 22:28:46 +0200 Subject: [PATCH 1/2] guides/localstack: update init directory to /etc/localstack/init/ready.d The /docker-entrypoint-initaws.d directory was removed in LocalStack 2.0. Switch the volume mount to the current ready.d init hook directory and add a short tip pointing to the init hooks reference. Also drops a stray trailing quote that made the mount path invalid. Closes #22640 --- content/guides/localstack.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/content/guides/localstack.md b/content/guides/localstack.md index e2c66e15768d..745eb0175ca1 100644 --- a/content/guides/localstack.md +++ b/content/guides/localstack.md @@ -264,7 +264,7 @@ Now that you have learnt how to connect a non-containerized Node.js application - SERVICES=s3 - GATEWAY_LISTEN=0.0.0.0:4566 volumes: - - ./localstack:/docker-entrypoint-initaws.d" + - ./localstack:/etc/localstack/init/ready.d volumes: mongodbdata: @@ -308,6 +308,15 @@ Now that you have learnt how to connect a non-containerized Node.js application The command creates an S3 bucket named `mysamplebucket`. + > [!TIP] + > + > You can automate this step by placing an executable script (for example, + > `chmod +x ./localstack/init.sh`) under the local `./localstack` + > directory. LocalStack runs files mounted in `/etc/localstack/init/ready.d` + > after it is ready. See + > [LocalStack init hooks](https://docs.localstack.cloud/references/init-hooks/) + > for more details. + Open [http://localhost:5173](http://localhost:5173) to access the complete to-do list application and start uploading images to the Amazon S3 bucket. > [!TIP] From 0ee14ba5a9118c453315cb5cb61c2b5241109044 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Catoire Date: Fri, 17 Apr 2026 22:30:23 +0200 Subject: [PATCH 2/2] review: split executable script tip for clarity --- content/guides/localstack.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/guides/localstack.md b/content/guides/localstack.md index 745eb0175ca1..c0d08d268583 100644 --- a/content/guides/localstack.md +++ b/content/guides/localstack.md @@ -310,11 +310,11 @@ Now that you have learnt how to connect a non-containerized Node.js application > [!TIP] > - > You can automate this step by placing an executable script (for example, - > `chmod +x ./localstack/init.sh`) under the local `./localstack` - > directory. LocalStack runs files mounted in `/etc/localstack/init/ready.d` - > after it is ready. See - > [LocalStack init hooks](https://docs.localstack.cloud/references/init-hooks/) + > You can automate this step by placing a shell script (for example, + > `init.sh`) under the local `./localstack` directory. Make sure the + > script is executable (`chmod +x ./localstack/init.sh`). LocalStack + > runs files mounted in `/etc/localstack/init/ready.d` once it is ready. + > See [LocalStack init hooks](https://docs.localstack.cloud/references/init-hooks/) > for more details. Open [http://localhost:5173](http://localhost:5173) to access the complete to-do list application and start uploading images to the Amazon S3 bucket.