[{"data":1,"prerenderedAt":60},["ShallowReactive",2],{"pattern-eventbridge-ssm-sam":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":30,"level":31,"meta":32,"patternArch":33,"resources":47,"s3URL":6,"services":6,"stem":55,"testing":56,"videoId":6,"__hash__":59},"patterns\u002Fpatterns\u002Feventbridge-ssm-sam.json","Amazon EventBridge rule to AWS Systems Manager automation",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fsyed-hussain.json",{"text":15},[16],"sam deploy --guided","Create an EventBridge Rule to trigger an AWS Systems Manager automation runbook.","json","AWS SAM",{"template":21},{"repoURL":22,"templateURL":23,"projectFolder":24,"templateFile":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-rule-to-ssm-automation-sam","serverless-patterns\u002Feventbridge-rule-to-ssm-automation-sam","eventbridge-rule-to-ssm-automation-sam","template.yaml",{"headline":27,"text":28},"How it works",[29],"This pattern will create an EventBridge rule that is configured to trigger when an EC2 instance goes into the \"running\" state. The rule will then execute the AWSSupport-ConfigureEC2Metadata Automation Runbook against that instance to disable IMDSv1.","YAML","100",{},{"icon1":34,"icon2":39,"line1":43},{"x":35,"y":36,"service":37,"label":38},20,50,"eventbridge","Amazon EventBridge",{"x":40,"y":36,"service":41,"label":42},80,"ssm","AWS Systems Manager",{"from":44,"to":45,"label":46},"icon1","icon2","Event",{"bullets":48},[49,52],{"text":50,"link":51},"EventBridge Rules User Guide","https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-rules.html",{"text":53,"link":54},"SSM Automation User Guide","https:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fsystems-manager-automation.html","patterns\u002Feventbridge-ssm-sam",{"text":57},[58],"Once the stack is deployed, launch a new EC2 Instance, and then navigate to https:\u002F\u002Fconsole.aws.amazon.com\u002Fsystems-manager\u002Fautomation\u002Fexecutions. There will be a new execution of the `AWSSupport-ConfigureEC2Metadata` document against the new instance.","bmFo91GURbne5fY6Ic_M8MycENhqa5nFkgb86RsA4dA",1779273336405]