Skip to content

Commit 45feb51

Browse files
authored
guides/localstack: update init directory to /etc/localstack/init/ready.d (#24816)
The `/docker-entrypoint-initaws.d` directory was removed in LocalStack 2.0. Updates the Compose snippet to mount the current `ready.d` init hook directory and adds a short tip pointing to the LocalStack init hooks reference. Also drops a stray trailing quote that made the previous mount path invalid. Closes #22640
1 parent 2c03c2d commit 45feb51

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

content/guides/localstack.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ Now that you have learnt how to connect a non-containerized Node.js application
264264
- SERVICES=s3
265265
- GATEWAY_LISTEN=0.0.0.0:4566
266266
volumes:
267-
- ./localstack:/docker-entrypoint-initaws.d"
267+
- ./localstack:/etc/localstack/init/ready.d
268268

269269
volumes:
270270
mongodbdata:
@@ -308,6 +308,15 @@ Now that you have learnt how to connect a non-containerized Node.js application
308308

309309
The command creates an S3 bucket named `mysamplebucket`.
310310

311+
> [!TIP]
312+
>
313+
> You can automate this step by placing a shell script (for example,
314+
> `init.sh`) under the local `./localstack` directory. Make sure the
315+
> script is executable (`chmod +x ./localstack/init.sh`). LocalStack
316+
> runs files mounted in `/etc/localstack/init/ready.d` once it is ready.
317+
> See [LocalStack init hooks](https://docs.localstack.cloud/references/init-hooks/)
318+
> for more details.
319+
311320
Open [http://localhost:5173](http://localhost:5173) to access the complete to-do list application and start uploading images to the Amazon S3 bucket.
312321

313322
> [!TIP]

0 commit comments

Comments
 (0)