A SysOps Administrator is configuring automated compliance remediation for AWS Config. The administrator wants to ensure that any Amazon S3 bucket found to be non-compliant with the `s3-bucket-public-read-prohibited` managed rule is automatically remediated using the `AWS-DisableS3BucketPublicReadWrite` AWS Systems Manager (SSM) Automation document. The administrator creates an IAM role for the SSM Automation execution but needs to ensure the remediation can be successfully initiated from the AWS Config console. Which configuration is required to allow AWS Config to execute the automation successfully?
- Configure remediation directly within the AWS Config rule using the SSM Automation document, and grant the administrator's IAM identity the `iam:PassRole` permission for the Automation execution role.Answer
- BConfigure remediation directly within the AWS Config rule using the SSM Automation document, and modify the trust policy of the Automation execution role to allow the administrator's IAM identity to assume it via `sts:AssumeRole`.
- CConfigure an Amazon EventBridge rule to detect compliance status changes from AWS Config, and configure the target of the EventBridge rule to trigger the AWS Config rule's remediation action.
- DConfigure an Amazon EventBridge rule to monitor configuration changes, and set the target to the S3 bucket's resource policy to block public read access directly.
Answer
Configure remediation directly within the AWS Config rule using the SSM Automation document, and grant the administrator's IAM identity the `iam:PassRole` permission for the Automation execution role.
The correct option correctly identifies that the administrator needs the `iam:PassRole` permission. When configuring AWS Config remediation with a custom SSM Automation execution role, the user setting up the automation must have the permission to pass that role to the Systems Manager service.
Step-by-Step Solution
Key Concept
AWS Config automated remediation requires the user configuring the rule to have `iam:PassRole` permissions to pass the execution role to the Systems Manager service.
Estimated Time:1m 30s