[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-s3-sqs-cdk-terraform":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":13,"deploy":15,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":31,"level":32,"meta":33,"patternArch":34,"resources":48,"s3URL":6,"services":6,"stem":57,"testing":58,"videoId":6,"__hash__":64},"patterns\u002Fpatterns\u002Fs3-sqs-cdk-terraform.json","Amazon S3 to Amazon SQS",null,{"headline":8,"text":9},"Cleanup",[10,11,12],"1. Change directory: \u003Ccode>s3-sqs-terraform\u003C\u002Fcode>.","2. Delete the stack: \u003Ccode>terraform destroy\u003C\u002Fcode>.","3. Confirm the stack has been deleted: \u003Ccode>terraform show\u003C\u002Fcode>.",[14],"content\u002Fcontributors\u002Fahmad-aboushady.json",{"text":16},[17],"See the GitHub repo for detailed deployment instructions.","Sends notifications from S3 to SQS when an object is created.","json","Terraform",{"template":22},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"s3-sqs-terraform","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-sqs-terraform","serverless-patterns\u002Fs3-sqs-terraform","main.tf",{"headline":28,"text":29},"How it works",[30],"This creates an S3 bucket and SQS queue. S3 writes a messages to the SQS queue when a new object is put into the bucket.","Integration","100",{},{"icon1":35,"icon2":40,"line1":44},{"x":36,"y":37,"service":38,"label":39},20,50,"s3","Amazon S3",{"x":41,"y":37,"service":42,"label":43},80,"sqs","SQS",{"from":45,"to":46,"label":47},"icon1","icon2","",{"headline":49,"bullets":50},"Additional resources",[51,54],{"text":52,"link":53},"Building resilient serverless patterns by combining messaging services","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fbuilding-resilient-no-code-serverless-patterns-by-combining-messaging-services\u002F",{"text":55,"link":56},"Choosing between messaging services for serverless applications","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fchoosing-between-messaging-services-for-serverless-applications\u002F","patterns\u002Fs3-sqs-cdk-terraform",{"headline":59,"text":60},"Testing",[61,62,63],"1. Upload an object to the S3 bucket created by the deployment: \u003Ccode>aws s3 cp 'test_upload.txt'  s3:\u002F\u002F\u003CBUCKET_NAME>\u003C\u002Fcode>","2. In the console, check the SQS queue created by the deployment for new messages containing the S3 event.","3. You can also use the SQS CLI to fetch new messages from the queue: \u003Ccode>aws sqs receive-message --queue-url QUEUE_URL --max-number-of-messages 10\u003C\u002Fcode>.","-g7xZdCoLOlYHnKWLyQ89LiSKMrVffonNcxNMQ8WAgY",1779273338932]