To enforce a security policy, an operations team uses a conformance pack containing the vpc-flow-logs-enabled AWS Config rule. A SysOps Administrator is responsible for setting up automated remediation. The administrator creates an IAM role named ConfigRemediationRole with a trust policy for ssm.amazonaws.com and attaches a permissions policy to enable flow logs. When configuring the automatic remediation action in AWS Config with the AWS-EnableVPCFlowLogs Systems Manager Automation document, the administrator receives an 'Access Denied' error upon saving the configuration. Which action should the administrator take to successfully save the remediation configuration?
- Add a policy to the administrator's IAM user or role that permits the iam:PassRole action on the ConfigRemediationRole resource.Answer
- BEdit the trust policy of ConfigRemediationRole to allow the config.amazonaws.com service principal to assume the role instead of ssm.amazonaws.com.
- CSet up an Amazon EventBridge rule to monitor AWS Config compliance change events and target the Systems Manager Automation document.
- DAttach an IAM policy to the ConfigRemediationRole allowing the iam:PassRole action to be performed on the ssm.amazonaws.com service principal.
Answer
Add a policy to the administrator's IAM user or role that permits the iam:PassRole action on the ConfigRemediationRole resource.
The correct answer is correct because AWS Config requires the user configuring automated remediation to have the `iam:PassRole` permission for the role passed to Systems Manager Automation. This permission must be attached to the IAM identity of the administrator who is saving the configuration.
Step-by-Step Solution
Key Concept
AWS Config Remediation IAM Permissions
Estimated Time:2m 30s