[{"data":1,"prerenderedAt":64},["ShallowReactive",2],{"pattern-s3-lambda-sns-python-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":30,"level":31,"meta":32,"patternArch":33,"resources":51,"s3URL":6,"services":6,"stem":59,"testing":60,"videoId":6,"__hash__":63},"patterns\u002Fpatterns\u002Fs3-lambda-sns-python-cdk.json","Amazon S3 to AWS Lambda to Amazon SNS",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fdinesh-balaaji-prabakaran.json",{"text":13},[14],"cdk deploy --parameters Email=\u003CEMAIL_ID_THAT_YOU_WANT_TO_SUSCRIBE_TO_SNS_TOPIC>","S3 upload events trigger Lambda functions to process new objects. After processing the Lambda function publishes an SNS notification.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-lambda-sns-python-cdk","serverless-patterns\u002Fs3-lambda-sns-python-cdk","s3-lambda-sns-python-cdk","src\u002Fs3-lambda-sns-python-cdk.py",{"headline":25,"text":26},"How it works",[27,28,29],"This pattern creates a Amazon S3 bucket, a Lambda function, and an Amazon SNS topic. ","The Lambda function is triggered by S3 'OBJECT_CREATED' events. The Lambda function can optionally apply business logic to the S3 object. After processing, the Lambda function publishes an SNS notification of the new object.","Important: this application uses various AWS services and there are costs associated with these services after the Free Tier usage - please see the [AWS Pricing page](https:\u002F\u002Faws.amazon.com\u002Fpricing\u002F) for details. You are responsible for any AWS costs incurred. No warranty is implied in this example.","Python","200",{},{"icon1":34,"icon2":39,"icon3":42,"line1":46,"line2":49},{"x":35,"y":36,"service":37,"label":38},20,50,"s3","Amazon S3",{"x":36,"y":36,"service":40,"label":41},"lambda","AWS Lambda",{"x":43,"y":36,"service":44,"label":45},80,"sns","Amazon SNS",{"from":47,"to":48},"icon1","icon2",{"from":48,"to":50},"icon3",{"bullets":52},[53,56],{"text":54,"link":55},"Getting started with the AWS CDK","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fv2\u002Fguide\u002Fgetting_started.html",{"text":57,"link":58},"Using an Amazon S3 trigger to invoke a Lambda function","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-s3-example.html","patterns\u002Fs3-lambda-sns-python-cdk",{"text":61},[62],"See the GitHub repo for detailed testing instructions.","ZhPLAavL3kXCbXKfraSlSfC_XMHd-85qGLdbFdngk-I",1778846887478]