[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-apigw-lambda-sns-sam":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":31,"level":32,"meta":33,"patternArch":34,"resources":53,"s3URL":6,"services":6,"stem":61,"testing":62,"videoId":6,"__hash__":65},"patterns\u002Fpatterns\u002Fapigw-lambda-sns-sam.json","Amazon API Gateway REST API to AWS Lambda to Amazon SNS",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fsanskar-sanyal.json",{"text":15},[16],"sam deploy --guided","Create an Amazon API Gateway REST API that calls AWS Lambda and Amazon SNS.","json","AWS SAM",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"apigw-lambda-sns","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-lambda-sns","serverless-patterns\u002Fapigw-lambda-sns","template.yaml",{"headline":27,"text":28},"How it works",[29,30],"This sample project demonstrates how to publish to a SNS Topic whenever the REST API is invoked using Lambda function.","This pattern deploys a Amazon API Gateway REST API with Lambda Function integration and SNS Topic.","Python","100",{},{"icon1":35,"icon2":40,"icon3":43,"line1":47,"line2":51},{"x":36,"y":37,"service":38,"label":39},20,50,"apigw","API Gateway REST API",{"x":37,"y":37,"service":41,"label":42},"lambda","AWS Lambda",{"x":44,"y":37,"service":45,"label":46},80,"sns","Amazon SNS",{"from":48,"to":49,"label":50},"icon1","icon2","",{"from":49,"to":52,"label":50},"icon3",{"bullets":54},[55,58],{"text":56,"link":57},"Choosing between messaging services for serverless applications.","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fchoosing-between-messaging-services-for-serverless-applications\u002F",{"text":59,"link":60},"Publishing Messages in Amazon SNS","https:\u002F\u002Fboto3.amazonaws.com\u002Fv1\u002Fdocumentation\u002Fapi\u002Flatest\u002Freference\u002Fservices\u002Fsns.html#topic","patterns\u002Fapigw-lambda-sns-sam",{"text":63},[64],"See the GitHub repo for detailed testing instructions.","PYQQl1tOiAlbeWwkeSMZv4naTyPbYuJBWyBb1yLsnhU",1779273332739]