[{"data":1,"prerenderedAt":59},["ShallowReactive",2],{"pattern-sqs-lambda-terraform-python":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"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":52,"stem":53,"testing":54,"videoId":28,"__hash__":58},"patterns\u002Fpatterns\u002Fsqs-lambda-terraform-python.json","Amazon SQS to AWS Lambda",null,{"headline":8,"text":9},"Cleanup",[10],"1. Delete the stack: \u003Ccode>terraform destroy --auto-approve\u003C\u002Fcode>.",[12],"content\u002Fcontributors\u002Fnicolas-diez.json",{"text":14},[15,16],"terraform apply --auto-approve","terraform init","Create a Lambda function that subscribes to an SQS queue","json","Terraform",{"template":21,"payloads":26},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"sqs-lambda-terraform-python","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsqs-lambda-terraform-python","serverless-patterns\u002Fsqs-lambda-terraform-python","main.tf",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31},"How it works",[32],"This pattern deploys deploys a Lambda function and an SQS queue. SQS invokes the Lambda function when new messages are available. 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,"sqs","SQS",{"x":43,"y":39,"service":44,"label":45},80,"lambda","AWS Lambda",{"from":47,"to":48,"label":28},"icon1","icon2",{"headline":50,"bullets":51},"Additional resources",[],{"from":40,"to":44},"patterns\u002Fsqs-lambda-terraform-python",{"headline":55,"text":56},"Testing",[57],"See the GitHub repo for detailed testing instructions.","6jynVp3_VvsMyxfk8ligh7KM71UJa0ADOkVnQjbT_2A",1778846888384]