AI Cloud Architect

Automating the full AWS DRS agent lifecycle: Install, heal, and offboard

AWSHow-to by Manisha Yadav, Danish Shamim and Vimal BhatiAWS Architecture Blog

Keeping a large Amazon EC2 fleet continuously recoverable with AWS Elastic Disaster Recovery is a lifecycle challenge. This post shows how to automate the full DRS agent lifecycle (install, heal, and offboard) using AWS Systems Manager Automation and Amazon EventBridge, driven by a single EC2 tag and no Lambda functions.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

A set of SSM Automation documents, driven by one EC2 DR tag and EventBridge events, installs, heals and removes the AWS DRS replication agent across an EC2 fleet.

Who it is for

Cloud architects running large EC2 fleets under AWS DRS who need agent health and clean descoping without Lambda functions.

Key points

  • Deployment starts in audit mode; installs and teardown are enabled separately via config flags
  • Offboarding reports billing status: COMPLETED, BILLING_STOPPED_ORPHAN, FAILED or NO_SERVER