[{"data":1,"prerenderedAt":62},["ShallowReactive",2],{"pattern-s3-lambda-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":31,"level":32,"meta":33,"patternArch":34,"resources":48,"s3URL":6,"services":6,"stem":57,"testing":58,"videoId":6,"__hash__":61},"patterns\u002Fpatterns\u002Fs3-lambda-terraform.json","Amazon S3 to AWS Lambda",null,{"text":8},[9,10,11],"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>.",[13],"content\u002Fcontributors\u002Fezzeddine-el-ayoubi.json",{"text":15},[16,17],"terraform init","terraform deploy","Create a Lambda function that receives events from S3.","json","Terraform",{"template":22},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"s3-lambda-terraform","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-lambda-terraform","serverless-patterns\u002Fs3-lambda-terraform","main.tf",{"headline":28,"text":29},"How it works",[30],"The Terraform template deploys a Lambda function, an S3 bucket and the IAM resources required to run the application. A Lambda function consumes ObjectCreated events from an Amazon S3 bucket. The Lambda code checks the uploaded file and console log the event.","Node.js","200",{},{"icon1":35,"icon2":40,"line1":44},{"x":36,"y":37,"service":38,"label":39},20,50,"s3","S3",{"x":41,"y":37,"service":42,"label":43},80,"lambda","AWS Lambda",{"from":45,"to":46,"label":47},"icon1","icon2","ObjectCreated:*",{"headline":49,"bullets":50},"Additional resources",[51,54],{"text":52,"link":53},"Tutorial: Using AWS Lambda with Amazon S3","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-s3-example.html",{"text":55,"link":56},"Blog Series: Building scalable serverless applications with Amazon S3 and AWS Lambda.","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fbuilding-scalable-serverless-applications-with-amazon-s3-and-aws-lambda\u002F","patterns\u002Fs3-lambda-terraform",{"text":59},[60],"See the GitHub repo for detailed testing instructions.","RISmuvuPM7732NbfiqOvRHwwgUf5PNPZKdrIOLwGsi0",1779273338830]