[{"data":1,"prerenderedAt":70},["ShallowReactive",2],{"pattern-eventbridge-scheduler-ecs-python-terraform":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":33,"level":34,"meta":35,"patternArch":36,"resources":49,"s3URL":6,"services":6,"stem":63,"testing":64,"videoId":6,"__hash__":69},"patterns\u002Fpatterns\u002Feventbridge-scheduler-ecs-python-terraform.json","Amazon EventBridge Cron to Amazon ECS Task",null,{"text":8},[9,10],"terraform destroy","Confirm the destruction by typing 'yes' when prompted.",[12],"content\u002Fcontributors\u002Fsudhansu-mohapatra.json",{"text":14},[15,16,17],"terraform init","terraform plan","terraform apply","Use Amazon EventBridge to schedule and trigger ECS Fargate tasks on a cron schedule, deployed with Terraform as IaC.","json","Terraform",{"template":22},{"repoURL":23,"templateURL":24,"projectFolder":25,"templateFile":26},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-scheduler-ecs-python-terraform","serverless-patterns\u002Feventbridge-scheduler-ecs-python-terraform","eventbridge-scheduler-ecs-python-terraform","eventbridge-ecs.tf",{"headline":28,"text":29},"How it works",[30,31,32],"This pattern creates an automated scheduled task execution system using EventBridge cron rules with ECS Fargate tasks.","The EventBridge rule triggers on a configurable schedule (cron or rate expression) and launches an ECS task in the specified cluster.","The solution is fully configurable through Terraform variables and implements security best practices with least-privilege IAM roles.","Python","200",{},{"icon1":37,"icon2":42,"line1":46},{"x":38,"y":39,"service":40,"label":41},20,50,"eventbridge","Amazon EventBridge",{"x":43,"y":39,"service":44,"label":45},80,"ecs","Amazon ECS",{"from":47,"to":48},"icon1","icon2",{"bullets":50},[51,54,57,60],{"text":52,"link":53},"Amazon EventBridge Scheduled Rules","https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-create-rule-schedule.html",{"text":55,"link":56},"Amazon ECS Fargate","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002FAWS_Fargate.html",{"text":58,"link":59},"EventBridge to ECS Integration","https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-targets.html#eb-ecs-task-target",{"text":61,"link":62},"Terraform AWS Provider","https:\u002F\u002Fregistry.terraform.io\u002Fproviders\u002Fhashicorp\u002Faws\u002Flatest\u002Fdocs","patterns\u002Feventbridge-scheduler-ecs-python-terraform",{"text":65},[66,67,68],"Check the EventBridge rule in the AWS Console to verify it's created with the correct schedule.","Manually trigger the rule to test the ECS task execution.","View CloudWatch logs to confirm the task is running as expected.","FyjgMr-lqogD1JGTlevSad5yqtjnyl825XASMNdbh_M",1782210916812]