A SysOps administrator is configuring automated, event-driven remediation for non-compliant resources. The administrator sets up the AWS Config managed rule `rds-snapshots-public-prohibited` to detect public Amazon RDS DB snapshots. To automatically remediate non-compliant snapshots, the administrator configures AWS Config to trigger the Systems Manager Automation document `AWS-DisablePublicAccessForRDSSnapshot`.
The administrator creates an IAM role named `ConfigRemediationExecutionRole` with a trust policy that allows `config.amazonaws.com` to assume the role. The role has an identity-based policy that allows `ssm:StartAutomationExecution` and `rds:ModifyDBSnapshotAttribute`. The administrator also creates a separate IAM role named `SSMAutomationAssumeRole` with a trust policy that allows `ssm.amazonaws.com` to assume it. This role has the permissions required to modify RDS snapshot attributes.
When configuring the remediation action in AWS Config, the administrator specifies `ConfigRemediationExecutionRole` as the remediation execution role, and passes the ARN of `SSMAutomationAssumeRole` as the `AutomationAssumeRole` parameter for the Systems Manager document. During testing, AWS Config detects a public snapshot, but the remediation fails with an execution error indicating authorization failure.
What configuration adjustment must the administrator make to resolve this issue?
- AModify the trust policy of ConfigRemediationExecutionRole to allow the ssm.amazonaws.com service principal to assume the role.
- Add iam:PassRole permission to ConfigRemediationExecutionRole targeting the resource SSMAutomationAssumeRole.Cevap
- CCreate an Amazon EventBridge rule that triggers on AWS Config compliance changes to invoke the Systems Manager Automation document directly, as AWS Config cannot initiate remediation actions natively.
- DEnable detailed monitoring on the Amazon RDS instances and configure the AWS Config recorder to perform evaluations at one-minute intervals.