A SysOps Administrator is configuring automatic remediation for the AWS Config managed rule rds-instance-public-access-check. The remediation configuration is set to use the AWS-defined Systems Manager (SSM) Automation document AWS-DisablePublicAccessForRDSInstance. The administrator has created an IAM role named RDSRemediationRole with a trust policy that allows ssm.amazonaws.com to assume it. When attempting to save the remediation configuration in the AWS Config console, the operation fails with an authorization error. Which action should the SysOps Administrator take to resolve this issue?
- Add an IAM policy containing the iam:PassRole permission for the RDSRemediationRole to the administrator's IAM identity.Answer
- BUpdate the trust relationship of the RDSRemediationRole to allow the config.amazonaws.com service principal to assume the role.
- CCreate an Amazon EventBridge rule that triggers on AWS Config compliance status changes to invoke the Systems Manager Automation document.
- DAttach the AWSServiceRoleForConfig service-linked role to the RDSRemediationRole trust policy to authorize the delegation.
Answer
Add an IAM policy containing the iam:PassRole permission for the RDSRemediationRole to the administrator's IAM identity.
The correct answer is to add an IAM policy containing the iam:PassRole permission for the RDSRemediationRole to the administrator's IAM identity. When configuring an AWS service like AWS Config to pass an IAM role to another service like Systems Manager Automation, AWS validates that the user or role making the configuration has the iam:PassRole permission. Without this permission, the console or API returns an authorization error.
Step-by-Step Solution
Key Concept
Configuring automatic remediation in AWS Config requires the configuring identity to have the iam:PassRole permission to delegate the remediation execution role to Systems Manager.
Estimated Time:2m 0s