Profile Applicability:
- Level 2
Description:
The AWS Replication Agent is a lightweight software installed on source servers that enables continuous block-level replication to AWS Elastic Disaster Recovery (EDR). The agent must be correctly installed and running for servers to be protected and recoverable. Without the agent, replication cannot occur, and recovery operations will fail.
Rationale:
Ensuring the agent is installed guarantees that:
Continuous replication to AWS is established
Recovery operations can be initiated when needed
The DR solution remains functional and reliable
Source servers stay in sync with recovery infrastructure
Default Value:
By default, the AWS Replication Agent is not installed. It must be manually downloaded and deployed on each source server.
Impact:
Pros:
• Enables real-time or near-real-time replication to AWS
• Facilitates automated recovery operations
• Supports consistent and up-to-date disaster recovery readiness
Cons:
• Manual installation required on each source server
• Improper installation may result in broken replication
• Additional software dependencies (e.g., Python) may be needed
Pre-requisites:
IAM Permissions Required:
drs:CreateSourceServer
drs:StartReplication
drs:DescribeSourceServers
ssm:SendCommand (optional for automated install via Systems Manager)
Access to source servers with administrative privileges
Remediation:
Test Plan:
Using AWS Console:
- Log in to the AWS Management Console
- Navigate to Elastic Disaster Recovery (EDR)
- Go to the Source Servers tab
- If a server is missing or unprotected, it means the agent has not been installed
- Check server status for “Not connected” or “Agent not installed” messages
Using AWS CLI:
aws drs describe-source-servers
Check for empty or missing entries, or ones with is-replicating = false
Implementation Plan:
Using AWS Console:
- Navigate to Elastic Disaster Recovery Console
- Click on Add source server
- Download the Replication Agent installer script from the AWS Console
- Run the script on the source server with administrative privileges
- Wait for the server to appear in the Source Servers list and for replication to begin
Using AWS CLI:
Step 1: Download the installer
curl -O https://aws-elastic-disaster-recovery-agent.s3.amazonaws.com/latest/install_dr_agent.sh
Step 2: Run the installer with your AWS credentials
sudo bash install_dr_agent.sh --region <aws-region> --account-id <account-id> --activation-key <activation-key>
Step 3: Validate agent registration
aws drs describe-source-servers
Backout Plan:
Using AWS Console:
- Remove the source server from EDR if needed
- Uninstall the agent manually from the source server
Using AWS CLI:
aws drs delete-source-server \ --source-server-id s-xxxxxxxxxxxxxxxxx
Manually remove the agent from the server (Linux example):
sudo rm -rf /var/lib/aws-replication-agent sudo systemctl stop aws-replication-agent sudo systemctl disable aws-replication-agent
References:
- https://docs.aws.amazon.com/drs/latest/userguide/agent-installation.html
- https://docs.aws.amazon.com/cli/latest/reference/drs/
- https://aws.amazon.com/disaster-recovery/