A SysOps administrator is configuring automatic remediation in AWS Config for a managed rule that checks whether Amazon RDS DB instances have deletion protection enabled. The administrator wants to use the AWS Systems Manager (SSM) Automation document `AWS-EnableRdsDbInstanceDeletionProtection` as the remediation action. During configuration, the administrator receives an 'Access Denied' error when trying to associate the IAM execution role with the remediation action in AWS Config.
Which of the following is the most likely cause of this error?
- The administrator's IAM user or role lacks the `iam:PassRole` permission for the SSM Automation execution role.Cevap
- BThe SSM Automation execution role's trust policy does not explicitly trust the AWS Config service (`config.amazonaws.com`).
- CThe remediation action must be triggered via an Amazon EventBridge rule rather than directly within AWS Config, which requires a trust policy for EventBridge.
- DThe RDS DB instances do not have detailed monitoring enabled, preventing AWS Config from evaluating the deletion protection configuration status in real time.
Cevap
The administrator's IAM user or role lacks the `iam:PassRole` permission for the SSM Automation execution role.
When configuring automated remediation in AWS Config using Systems Manager Automation, AWS Config must pass the execution role (specified by the assume role ARN) to the Systems Manager service. To do this, the IAM user or role performing the configuration must have the `iam:PassRole` permission for the execution role. Without this permission, the administrator receives an Access Denied error when trying to associate the role with the remediation configuration.
Adım Adım Çözüm
Anahtar Kavram
Configuring automatic remediation in AWS Config with Systems Manager Automation requires the administrator configuring the action to have the `iam:PassRole` permission for the execution role, which must trust `ssm.amazonaws.com`.