[{"data":1,"prerenderedAt":56},["ShallowReactive",2],{"pattern-eventbridge-schedule-to-cloudwatch-alarm-terraform":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":29,"level":30,"meta":31,"patternArch":32,"resources":46,"s3URL":6,"services":6,"stem":51,"testing":52,"videoId":6,"__hash__":55},"patterns\u002Fpatterns\u002Feventbridge-schedule-to-cloudwatch-alarm-terraform.json","Amazon EventBridge Scheduler for Amazon CloudWatch Alarm",null,{"text":8},[9],"Delete the stack: \u003Ccode>terraform destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fedwin-so.json",{"text":13},[14],"See the GitHub repo for detailed deployment instructions.","Create two Amazon EventBridge Scheduler schedules to enable and disable the action of a CloudWatch alarm","json","Terraform",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-schedule-to-cloudwatch-alarm-terraform","serverless-patterns\u002Feventbridge-schedule-to-cloudwatch-alarm-terraform","eventbridge-schedule-to-cloudwatch-alarm-terraform","main.tf",{"headline":25,"text":26},"How it works",[27,28],"Two Amazon EventBridge Scheduler schedules will be used to enable and disable the action of a CloudWatch alarm.","This Terraform template creates a VPC, an EC2 instance and two schedules that invokes the enableAlarmActions and disableAlarmActions API regularly.","YAML","200",{},{"icon1":33,"icon2":38,"line1":42},{"x":34,"y":35,"service":36,"label":37},25,50,"eventbridge-scheduler","Amazon EventBridge Scheduler",{"x":39,"y":35,"service":40,"label":41},75,"cloudwatch","Amazon CloudWatch alarms",{"from":43,"to":44,"label":45},"icon1","icon2","enables\u002Fdisables",{"bullets":47},[48],{"text":49,"link":50},"Using universal targets in EventBridge Scheduler","https:\u002F\u002Fdocs.aws.amazon.com\u002Fscheduler\u002Flatest\u002FUserGuide\u002Fmanaging-targets-universal.html","patterns\u002Feventbridge-schedule-to-cloudwatch-alarm-terraform",{"text":53},[54],"See the GitHub repo for detailed testing instructions.","zsRkD1WLBDllKBMg5tx9OHiK40U3IitL8Z1ruvi3FSs",1778927708177]