A SysOps Administrator is configuring automated remediation for non-compliant resources detected by AWS Config. The administrator is using an AWS Systems Manager (SSM) Automation document to remediate non-compliant Amazon S3 buckets. The administrator creates an IAM role named `S3RemediationRole` with the required permissions to modify bucket configurations. When configuring the remediation action in AWS Config, the administrator specifies the Amazon Resource Name (ARN) of `S3RemediationRole` as the `AutomationAssumeRole` parameter. However, when the remediation is triggered, the execution fails to start and indicates that the role cannot be assumed. Which action must the administrator take to resolve this issue?
- AAdd the `iam:PassRole` permission to the `S3RemediationRole` permissions policy to allow the role to pass itself.
- BModify the trust policy of `S3RemediationRole` to allow the `config.amazonaws.com` service principal to assume the role.
- Modify the trust policy of `S3RemediationRole` to allow the `ssm.amazonaws.com` service principal to assume the role.Cevap
- DCreate an Amazon EventBridge rule that triggers the SSM Automation document directly and configure the target to use `config.amazonaws.com` as the execution role.
Cevap
Modify the trust policy of `S3RemediationRole` to allow the `ssm.amazonaws.com` service principal to assume the role.
AWS Config automated remediation executes remediations by calling AWS Systems Manager Automation. The IAM role specified as `AutomationAssumeRole` is assumed by the Systems Manager Automation service. Therefore, the trust policy of `S3RemediationRole` must list `ssm.amazonaws.com` as a trusted entity and allow the `sts:AssumeRole` action. Without this permission, Systems Manager cannot assume the role, and the remediation task fails to initialize.
Adım Adım Çözüm
Anahtar Kavram
AWS Config automated remediation utilizes Systems Manager Automation documents, meaning the specified execution role must trust the Systems Manager service principal (`ssm.amazonaws.com`), not AWS Config.
Tahmini Süre:2m 0s