- Language:
- Integration
- Framework:
- Terraform
Download this pattern (.zip)
View this pattern on GitHub
Clone repo
git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/s3-sqs-terraform
Deploy
See the GitHub repo for detailed deployment instructions.
Testing
1. Upload an object to the S3 bucket created by the deployment: aws s3 cp 'test_upload.txt' s3://
2. In the console, check the SQS queue created by the deployment for new messages containing the S3 event.
3. You can also use the SQS CLI to fetch new messages from the queue: aws sqs receive-message --queue-url QUEUE_URL --max-number-of-messages 10.
Cleanup
1. Change directory: s3-sqs-terraform.
2. Delete the stack: terraform destroy.
3. Confirm the stack has been deleted: terraform show.