A SysOps Administrator is configuring an AWS Config rule to monitor whether Amazon EC2 instances have public IP addresses. The administrator sets up automatic remediation using the AWS-StopEC2Instance Systems Manager (SSM) Automation document. The administrator creates an IAM role named ConfigRemediationRole that has a trust relationship with ssm.amazonaws.com and has the necessary permissions to stop EC2 instances. When the administrator attempts to associate this role with the AWS Config remediation configuration, the AWS Config console displays an error: 'Insufficient permissions to pass the remediation role.' Which action will resolve this issue?
- Attach an IAM policy to the administrator's IAM identity that grants the iam:PassRole permission for the ConfigRemediationRole resource.Answer
- BUpdate the trust policy of ConfigRemediationRole to allow the AWS Config service (config.amazonaws.com) to assume the role.
- CAdd the iam:PassRole permission to the permissions policy of the ConfigRemediationRole itself, specifying the administrator's IAM identity as the resource.
- DConfigure an Amazon EventBridge rule to monitor AWS Config compliance change events and target the Systems Manager Automation document directly.
Answer
Attach an IAM policy to the administrator's IAM identity that grants the iam:PassRole permission for the ConfigRemediationRole resource.
The correct answer is to grant the administrator the iam:PassRole permission. When configuring AWS services to act on your behalf using an IAM role, your IAM identity (user or role) must be authorized to pass that role. Without this permission, the AWS Config console and API prevent you from completing the configuration to protect against unauthorized privilege escalation.
Step-by-Step Solution
Key Concept
AWS Config automated remediation and IAM role delegation (iam:PassRole requirements)