[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-lambda-sqs-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":29,"language":33,"level":34,"meta":35,"patternArch":36,"resources":49,"s3URL":6,"services":58,"stem":59,"testing":60,"videoId":28,"__hash__":64},"patterns\u002Fpatterns\u002Flambda-sqs-cdk.json","AWS Lambda to Amazon SQS",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>cdk destroy\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\u002Fjose-albino-neto.json",{"text":15},[16],"cdk deploy","Create a Lambda function that publishes to an SQS queue","json","AWS CDK",{"template":21,"payloads":26},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"lambda-sqs-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-sqs-cdk","serverless-patterns\u002Flambda-sqs-cdk","lambda_sqs_cdk\u002Flambda_sqs_cdk_stack.py",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31,"test":28},"How it works",[32],"This pattern deploys a SQS Queue and a Lambda function that once triggered will send a message to the Sqs Queue. The CDK application contains the minimum IAM resources required to run the application.","Python","100",{},{"icon1":37,"icon2":42,"line1":46},{"x":38,"y":39,"service":40,"label":41},20,50,"lambda","AWS Lambda",{"x":43,"y":39,"service":44,"label":45},80,"sqs","SQS",{"from":47,"to":48,"label":28},"icon1","icon2",{"headline":50,"bullets":51},"Additional resources",[52,55],{"text":53,"link":54},"Choosing between messaging services for serverless applications.","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fchoosing-between-messaging-services-for-serverless-applications\u002F",{"text":56,"link":57},"Using AWS Lambda with Amazon SQS","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-sqs.html",{"from":40,"to":44},"patterns\u002Flambda-sqs-cdk",{"headline":61,"text":62},"Testing",[63],"See the GitHub repo for testing instructions.","GHvJ0x0GDjcNdDQL06OzwrG4xYbBiiaGnMDLcSzj_jo",1778846886663]