[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-sam-eventbridge-ebs-snapshot":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":32,"level":33,"meta":34,"patternArch":35,"resources":49,"s3URL":6,"services":6,"stem":60,"testing":61,"videoId":6,"__hash__":65},"patterns\u002Fpatterns\u002Fsam-eventbridge-ebs-snapshot.json","Automated EBS Snapshot Creation on EC2 Shutdown using Amazon EventBridge",null,{"text":8},[9,10],"sam delete","Note: Existing snapshots must be deleted manually if needed.",[12],"content\u002Fcontributors\u002Fanirudh-gupta.json",{"text":14},[15,16],"sam build","sam deploy --guided","This pattern deploys an EventBridge rule that automatically creates EBS snapshots when an EC2 instance shuts down using direct EBS target integration.","json","AWS SAM",{"template":21},{"repoURL":22,"templateURL":23,"projectFolder":24,"templateFile":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsam-eventbridge-ebs-snapshot","serverless-patterns\u002Fsam-eventbridge-ebs-snapshot","sam-eventbridge-ebs-snapshot","template.yaml",{"headline":27,"text":28},"How it works",[29,30,31],"This pattern creates an automated EBS snapshot system using EventBridge event-driven rules with direct EBS target integration.","The EventBridge rule monitors EC2 instance state changes and triggers when an instance enters shutting-down or stopping state.","The solution requires Volume ID and Instance ID parameters and uses pure infrastructure-as-code approach without Lambda functions.","YAML","100",{},{"icon1":36,"icon2":41,"line1":45},{"x":37,"y":38,"service":39,"label":40},20,50,"ec2","Amazon EC2",{"x":42,"y":38,"service":43,"label":44},80,"eventbridge","Amazon EventBridge",{"from":46,"to":47,"label":48},"icon1","icon2","state change",{"bullets":50},[51,54,57],{"text":52,"link":53},"Amazon EventBridge Event Rules","https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-rules.html",{"text":55,"link":56},"Amazon EBS Snapshots","https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSEC2\u002Flatest\u002FUserGuide\u002FEBSSnapshots.html",{"text":58,"link":59},"EventBridge Built-in Targets","https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-targets.html","patterns\u002Fsam-eventbridge-ebs-snapshot",{"text":62},[63,64],"Stop or terminate the monitored EC2 instance after deployment.","Check EC2 console snapshots section - snapshot will be created when instance shuts down.","BDBAHSBLFQL-FKNUObGbJHk0REsX1Fg0FmnZZLiQ_eQ",1778846887684]