Localstack
pip install localstack
localstack update all
https://github.com/localstack/localstack-demo
git clone git@github.com:localstack/localstack-demo.git
cd localstack-demo.git
npm install
npm audit fix
npm install -g serverless
AWS_PROFILE=default serverless deploy --stage local
localstack start
Config for usage
aws configure --profile default
and pass AWS_ACCESS_KEY_ID="test", AWS_SECRET_ACCESS_KEY="test", AWS_DEFAULT_REGION="us-east-1"
switch to profile using
export AWS_DEFAULT_PROFILE=default
export AWS_PROFILE=default
verify profile using
aws configure list
setup a local endpoint
localstack start
export LOCALSTACK_HOSTNAME=localhost
aws --endpoint-url=http://localhost:4566 kinesis list-streams
Create a bucket
awslocal s3api create-bucket --bucket sample-bucket
awslocal s3api list-buckets
touch index.html
awslocal s3api put-object --bucket sample-bucket --key index.html --body index.html