Cloudformation template

Job ID: 34090603

Budget: ₹600 – ₹1,500 INR

Write a cloud formation template to deploy a lambda function with the following:-

1 . An SQS queue which subscribes to a SNS topic based on a particular message type
2. A lambda function which is listening to the SQS Queue (in point 1) events and writing the
messages body to s3
3. S3 bucket configured with versioning and lifecycle polices for that data
4 Necessary policies and roles required for this use-case

Also, please suggest some improvements for this infra based on efficiency and security point of view. For
the coding challenge submissions,
Related categories: Aws Lambda Amazon CloudFormation