Mar 20, 2022
How to develop, run, and test AWS applicaitons locally
LocalStack is a cloud service emulator that supports a great number of AWS services like Lambda, S3, DynamoDB, SQS, SNS, and many more.
Let’s get it installed and started:
pip install localstack
localstack start -d
There is a bit of configuration if you do not want to install other dependencies:
alias laws='AWS_ACCESS_KEY_ID="test" AWS_SECRET_ACCESS_KEY="test" AWS_DEFAULT_REGION="us-east-1" aws --endpoint-url=http://localhost:4566'
Finally, we can execute our favorite AWS commands:
laws sns list-topics
Related tags: