[{"data":1,"prerenderedAt":62},["ShallowReactive",2],{"pattern-lambda-sqs-terraform":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":32,"level":33,"meta":34,"patternArch":35,"resources":48,"s3URL":6,"services":6,"stem":57,"testing":58,"videoId":6,"__hash__":61},"patterns\u002Fpatterns\u002Flambda-sqs-terraform.json","AWS Lambda to Amazon SQS",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>terraform destroy\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>terraform show\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fstephen-monaghan.json",{"text":15},[16,17],"terraform init","terraform apply","Create a Lambda function that publishes to an SQS queue","json","Terraform",{"template":22},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"lambda-sqs-terraform","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-sqs-terraform","serverless-patterns\u002Flambda-sqs-terraform","main.tf",{"headline":28,"text":29,"test":31},"How it works",[30],"The SAM template deploys a Lambda function, an SQS queue and the IAM permissions required to run the application. The Lambda function publishes a message to the SQS queue when invoked.","","Node.js","100",{},{"icon1":36,"icon2":41,"line1":45},{"x":37,"y":38,"service":39,"label":40},20,50,"lambda","AWS Lambda",{"x":42,"y":38,"service":43,"label":44},80,"sqs","SQS",{"from":46,"to":47,"label":31},"icon1","icon2",{"headline":49,"bullets":50},"Additional resources",[51,54],{"text":52,"link":53},"Choosing between messaging services for serverless applications.","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fchoosing-between-messaging-services-for-serverless-applications\u002F",{"text":55,"link":56},"Using AWS Lambda with Amazon SQS","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-sqs.html","patterns\u002Flambda-sqs-terraform",{"text":59},[60],"See the README in the GitHub repo for detailed testing instructions.","bYmcFJpmm9KTm3CTD2ofI17bMHIgItiuQ3ZKImt8hag",1779618905655]