A company manages its multi-account environment using AWS Organizations. A SysOps administrator is deploying an organization conformance pack to enforce Amazon EBS volume encryption. The conformance pack template contains an AWS Config rule and a remediation configuration that executes an AWS Systems Manager (SSM) Automation document to delete any non-compliant volumes.
While testing the deployment in a member account, the administrator finds that the AWS Config rule successfully marks unencrypted volumes as non-compliant, but the remediation status displays an execution failure due to a permissions issue.
How should the administrator resolve this execution failure?
- Grant the AWS Config service role the iam:PassRole permission for the SSM Automation execution role, and verify that the execution role's trust policy allows ssm.amazonaws.com to assume it.Cevap
- BModify the trust policy of the SSM Automation execution role to allow config.amazonaws.com to assume it, and remove the iam:PassRole permission from the AWS Config service role.
- CCreate an Amazon EventBridge rule that triggers whenever AWS Config detects a non-compliant resource, and configure the rule to run the SSM Automation document using an IAM role that trusts config.amazonaws.com.
- DAttach an IAM policy to the AWS Config service role that allows access to the KMS key used to encrypt the EBS volumes, and omit the execution role trust policy configuration.
Cevap
Grant the AWS Config service role the iam:PassRole permission for the SSM Automation execution role, and verify that the execution role's trust policy allows ssm.amazonaws.com to assume it.
The correct answer correctly addresses the permission flow required for AWS Config automatic remediations. When AWS Config initiates remediation, it passes the specified execution role to AWS Systems Manager. For this to succeed, the AWS Config service role must have the iam:PassRole permission for the execution role. Concurrently, the execution role's trust policy must allow ssm.amazonaws.com to assume it, as Systems Manager is the service executing the API actions.
Adım Adım Çözüm
Anahtar Kavram
AWS Config rules remediation relies on Systems Manager Automation, which requires the AWS Config service role to have iam:PassRole permissions for the execution role, and the execution role to trust ssm.amazonaws.com.
Tahmini Süre:1m 30s