[{"data":1,"prerenderedAt":78},["ShallowReactive",2],{"pattern-s3-lambda-ses-terraform":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":32,"level":33,"meta":34,"patternArch":35,"resources":55,"s3URL":6,"services":6,"stem":73,"testing":74,"videoId":6,"__hash__":77},"patterns\u002Fpatterns\u002Fs3-lambda-ses-terraform.json","Amazon S3 to AWS Lambda to SES",null,{"text":8},[9,10],"1. Delete the stack: \u003Ccode>terraform destroy\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>terraform show\u003C\u002Fcode>.",[12],"content\u002Fcontributors\u002Fakhil-deshneni.json",{"text":14},[15,16],"terraform init","terraform deploy","Create a Lambda function that sends emails via SES for S3 events.","json","Terraform",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"s3-lambda-ses-terraform","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-lambda-ses-terraform","serverless-patterns\u002Fs3-lambda-ses-terraform","deploy.tf",{"headline":27,"text":28},"How it works",[29,30,31],"This template deploys a AWS Lambda Function and Amazon S3 bucket with the required IAM resources to run the application","The Lambda Function consumes **ObjectCreated** events from an Amazon S3 bucket","Further, Lambda code checks the object size if the uploded file size is \u003C= 25MB then the object will be attached to the email for higher payloads Lambda generates a presigned URL and generates short URL which will be attached to the email","Python","200",{},{"icon1":36,"icon2":41,"icon3":44,"line1":48,"line2":52},{"x":37,"y":38,"service":39,"label":40},20,50,"s3","S3",{"x":38,"y":38,"service":42,"label":43},"lambda","AWS Lambda",{"x":45,"y":38,"service":46,"label":47},80,"ses","SES",{"from":49,"to":50,"label":51},"icon1","icon2","ObjectCreated:*",{"from":50,"to":53,"label":54},"icon3","",{"headline":56,"bullets":57},"Additional resources",[58,61,64,67,70],{"text":59,"link":60},"Tutorial: Using AWS Lambda with Amazon S3","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-s3-example.html",{"text":62,"link":63},"Blog Series: Building scalable serverless applications with Amazon S3 and AWS Lambda.","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fbuilding-scalable-serverless-applications-with-amazon-s3-and-aws-lambda\u002F",{"text":65,"link":66},"Using AWS Lambda with Amazon S3","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-s3.html",{"text":68,"link":69},"AWS Lambda - the Basics","https:\u002F\u002Fdocs.aws.amazon.com\u002Fwhitepapers\u002Flatest\u002Fserverless-architectures-lambda\u002Faws-lambdathe-basics.html",{"text":71,"link":72},"How do I send email using Lambda and Amazon SES","https:\u002F\u002Faws.amazon.com\u002Fpremiumsupport\u002Fknowledge-center\u002Flambda-send-email-ses\u002F","patterns\u002Fs3-lambda-ses-terraform",{"text":75},[76],"See the GitHub repo for detailed testing instructions.","7AQ0IH3rw5dQp4wj2MRq2ZPiKaTyMg907sENuPuSGME",1778846887453]