This repository helps developers to run simple localstack examples. The examples were tested on a MacOS Monterey ARM64 (M1) processor. The full documentation can be found here.
- Lambda
- S3
This example creates an S3 bucket (named mybucket), and a node lambda function (named example) that puts an object (file.txt) into that bucket with some content.
Edit the .env
file and change the IP address to any IP of the HOST that is running the localstack (usually your laptop's IP address, such as 192.168.0.10, for example). Do not use 127.0.0.1.
If you have no ~/.aws/credentials
configured, please create one with fake access and secret keys.
Run the following command:
make example-01
Run the following command to list all available options:
make help
To destroy localstack with all the created AWS resources, run the below command. Since we are not creating a localstack docker volume, to persist data, EVERYTHING will be lost.
make destroy