Initialization hooks are a way to automatically run scripts and programs during localstack lifecycle phases. For instance, you could run a set of AWS commands after localstack has become ready to serve requests.
This sample shows how to use init hooks when using
docker compose(example-docker-compose/)lstk(example-localstack-cli/)
- A valid LocalStack for AWS license. Your license provides a
LOCALSTACK_AUTH_TOKENto activate LocalStack. lstk. Install it withnpm install -g @localstack/lstk, orbrew install localstack/tap/lstk.- Docker Compose.
- AWS CLI, required by
lstk aws.