A SysOps Administrator is implementing a hybrid disaster recovery strategy using AWS Elastic Disaster Recovery (AWS DRS) to replicate on-premises database servers to AWS. The AWS Replication Agent is successfully installed and the replication status in the AWS DRS console is 'Healthy'. The administrator modifies the default EC2 Launch Template in the AWS DRS console to specify that recovered instances must launch with a predefined IAM instance profile named 'DatabaseRecoveryProfile' to grant database processes access to specific Amazon S3 buckets. When the administrator initiates a recovery drill in the AWS DRS console, the launch job fails during the EC2 instantiation phase. What is the most likely cause of this failure?
- AThe on-premises AWS Replication Agent credentials lack the iam:PassRole permission, preventing the agent from attaching the DatabaseRecoveryProfile to the target instances during the block replication phase.
- The IAM policy of the administrator initiating the recovery drill does not include the iam:PassRole permission for the role associated with the DatabaseRecoveryProfile instance profile.Answer
- CThe trust policy of the DatabaseRecoveryProfile role does not allow the Elastic Disaster Recovery service (drs.amazonaws.com) to assume the role on behalf of the administrator.
- DThe Route 53 failover routing policy associated with the application endpoint fails to detect the recovery drill instance because it lacks a health check mapping, aborting the DRS launch sequence.
Answer
The IAM policy of the administrator initiating the recovery drill does not include the iam:PassRole permission for the role associated with the DatabaseRecoveryProfile instance profile.
To launch an EC2 instance with an associated IAM role, the user or role launching the instance (in this case, the SysOps Administrator performing the recovery drill) must have the iam:PassRole permission for that role. Without it, the EC2 service will prevent the launch because the user is not authorized to delegate permissions to the instance.
Step-by-Step Solution
Key Concept
AWS Elastic Disaster Recovery EC2 Launch Template IAM PassRole requirement