Sample project to use Terraform, Localstack (AWS Local) and Docker compose with Nodejs
GPL-3.0 License
Sample project to use Terraform, Localstack (AWS Local) and Docker compose with Nodejs.
As this is a simple example I will use only this references. Please change it π
AWS_ACCESS_KEY_ID='123'
AWS_SECRET_KEY='xyz'
AWS_BUCKET_NAME='demo-bucket'
AWS_BUCKET_REGION='us-east-1'
Previous Steps...
docker-compose up
http://localhost:8055/#/infra
Time to play
brew install terraform
)main.tf
terraform init
terraform apply
http://localhost:4572/
and http://localhost:8055/#/infra
brew install awscli
)aws config
check .env
aws --endpoint-url=http://localhost:4572 s3 mb s3://demo-bucket
aws --endpoint-url=http://localhost:4572 s3api put-bucket-acl --bucket demo-bucket --acl public-read
http://localhost:4572/
and http://localhost:8055/#/infra
aws.js
and upload-demo.js
npm install
node upload-demo
./localstack/data
files