[{"data":1,"prerenderedAt":69},["ShallowReactive",2],{"pattern-s3-eventbirdge-fargate-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":33,"level":34,"meta":35,"patternArch":36,"resources":56,"s3URL":6,"services":6,"stem":64,"testing":65,"videoId":6,"__hash__":68},"patterns\u002Fpatterns\u002Fs3-eventbirdge-fargate-cdk.json","Amazon S3 to AWS Fargate",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fjerome-van-der-linden.json",{"text":13},[14],"npm install && cdk deploy","Start an AWS Fargate Task when a file is uploaded to S3","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-eventbridge-fargate-cdk","serverless-patterns\u002Fs3-eventbridge-fargate-cdk\u002Fsrc","s3-eventbridge-fargate-cdk","src\u002Fs3-trigger-fargate-task-stack.ts",{"headline":25,"text":26},"How it works",[27,28,29,30,31,32],"This pattern demonstrates how to start an AWS Fargate task when an object is uploaded to Amazon S3.","This pattern is commonly implemented with an AWS Lambda function, but this is not always possible:"," - Processing > 15 min"," - Docker image > 10G"," - GPU required","Thanks to Amazon EventBridge, S3 events can start an ECS\u002FFargate task.","TypeScript","200",{},{"icon1":37,"icon2":42,"icon3":45,"line1":49,"line2":53},{"x":38,"y":39,"service":40,"label":41},20,50,"s3","Amazon S3",{"x":39,"y":39,"service":43,"label":44},"eventbridge","Amazon EventBridge",{"x":46,"y":39,"service":47,"label":48},80,"fargate","AWS Fargate",{"from":50,"to":51,"label":52},"icon1","icon2","Event",{"from":51,"to":54,"label":55},"icon3","Rule",{"bullets":57},[58,61],{"text":59,"link":60},"Using EventBridge to handle S3 events","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002FEventBridge.html",{"text":62,"link":63},"ECS Task as a target for EventBridge","https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-targets.html#targets-specifics-ecs-task","patterns\u002Fs3-eventbirdge-fargate-cdk",{"text":66},[67],"See the GitHub repo for detailed testing instructions.","Taow03i0IE7brRaOsUvB10T2I16TEsdoKfnZczHBzis",1778846887155]