- This sample deploys a Terraform configuration
- Copies a log file into an S3 bucket
- Sends a notification to an SNS
- Broadcast to SQS queue(s)
- Lambda retrieves a message from an SQS queue
- Terraform
- LocalStack
- AWS CLI
- jq
- Clone the repository and navigate to the sample directory.
- Run the
./deploy.sh
script to deploy the full sample.
./deploy.sh
: Deployment scriptmain.tf
: Terraform configuration fileprovider.tf
: Terraform provider configuration filelambda/index.py
: Lambda codes/test/some-log-file.log
: Sample log file
- https://spacelift.io/blog/terraform-aws-lambda
- https://www.youtube.com/watch?v=O2j8k7j9mLM&ab_channel=ListenToLearn
- https://github.com/jupitercl/aws-localstack-terraform-sns-sqs-lambda
- https://hashnode.localstack.cloud/testing-s3-notifications-locally-with-localstack-terraform
- Make terraform detect lambda code changes to re-apply to target:
- Localstack Lambda deploy issue
- Turn on debug logging to determine cause
- If cause is connection issue due to certificates, make sure VPN is turned off or certificates are installed correctly.