Question
Create an S3 bucket with two folders - inbox and archive. Name the bucket lab-s3-lambda-notification. Create a Lambda function that moves files from inbox to
Create an S3 bucket with two folders - inbox and archive. Name the bucket "lab-s3-lambda-notification."
Create a Lambda function that moves files from inbox to archive folders when triggered by new files appearing in the inbox. Name this function "lab-s3-lambda-notification-move-images."
Create a second Lambda function that formulates a pleasant email notification that SNS delivers. It is triggered by successful completion of the first Lambda function. Name this function "lab-s3-lambda-notification-send-notification."
Create a separate custom policy for each Lambda function that grants it the absolute minimum permissions to do each job. Name the policies "lab-s3-lambda-notification-move-images" and "lab-s2-lambda-notification-send-notification."
Create an SNS topic that the marketing team subscribes to via email. Name this topic "lab-s3-lambda-notification-marketing."
Create an SNS topic that the IT team subscribes to via email. Name this topic "lab-s3-lambda-notification-errors."
A successful file move sends a notification to the marketing SNS topic.
Any failure of either Lambda sends a notification to the failure SNS topic.
Show an email generated for successful processing through the entire chain.
Show an email generated for unsuccessful processing through part of the chain.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started