[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-eventbridge-sqs-ecs-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":30,"level":31,"meta":32,"patternArch":33,"resources":52,"s3URL":6,"services":6,"stem":60,"testing":61,"videoId":6,"__hash__":64},"patterns\u002Fpatterns\u002Feventbridge-sqs-ecs-cdk.json","Trigger ECS task from Amazon SQS using Amazon EventBridge",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fkiranpreet-chawla.json",{"text":13},[14],"cdk deploy","Create an application to create ECS tasks based on SQS messages pushed through EventBridge.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-sqs-ecs-cdk","serverless-patterns\u002Feventbridge-sqs-ecs-cdk","eventbridge-sqs-ecs-cdk\u002Fsrc","lib\u002Feb-sqs-ecs-stack.ts",{"headline":25,"text":26},"How it works",[27,28,29],"This project contains sample AWS CDK code to integrate Amazon EventBridge, Amazon SQS and Amazon Elastic Container Service (ECS).","As a new event is sent to EventBridge, it is queued in SQS and then, based on the number of messages in the queue, it creates an ECS cluster with Fargate task definitions.","When the task is completed, it deletes the message from the queue.","TypeScript","200",{},{"icon1":34,"icon2":39,"icon3":42,"line1":46,"line2":50},{"x":35,"y":36,"service":37,"label":38},20,50,"eventbridge","Amazon EventBridge",{"x":36,"y":36,"service":40,"label":41},"sqs","SQS",{"x":43,"y":36,"service":44,"label":45},80,"ecs","Elastic Container Service",{"from":47,"to":48,"label":49},"icon1","icon2","",{"from":48,"to":51,"label":49},"icon3",{"bullets":53},[54,57],{"text":55,"link":56},"Amazon EventBridge- Build event-driven applications at scale across AWS","https:\u002F\u002Faws.amazon.com\u002Feventbridge\u002F",{"text":58,"link":59},"Amazon SQS- Fully managed message queuing for microservices, distributed systems, and serverless applications","https:\u002F\u002Faws.amazon.com\u002Fsqs\u002F","patterns\u002Feventbridge-sqs-ecs-cdk",{"text":62},[63],"See the GitHub repo for detailed testing instructions.","FC5ojQtzGpwVUj6iA8Do71Vtzw2F2x1HjHIXNCawKPw",1779273336364]