A SysOps administrator wants to automatically remediate non-compliant Amazon S3 buckets that allow public read access using AWS Config. The administrator plans to use the AWS-ConfigureS3BucketPublicAccessBlock Systems Manager Automation document to perform the remediation. Which of the following configurations are required to set up this automated remediation? (Select TWO.)
- Configure a remediation action within the AWS Config rule that targets the AWS-ConfigureS3BucketPublicAccessBlock Systems Manager Automation document.Answer
- Specify an IAM service role (remediation role) that grants Systems Manager Automation permission to modify S3 bucket settings, and ensure the administrator has iam:PassRole permission for this role.Answer
- CCreate an Amazon EventBridge rule that directly invokes the Systems Manager Automation document when any S3 bucket is created, bypassing AWS Config evaluation.
- DRely on the Systems Manager Automation document to automatically inherit the IAM permissions of the administrator configuring the rule, without specifying an execution role.
- EEnable detailed CloudWatch monitoring on the S3 buckets to reduce the latency of the AWS Config rule evaluation to 1 minute.
Answer
Configure a remediation action within the AWS Config rule targeting the Systems Manager Automation document, and specify an IAM service role with permissions to modify S3 settings along with the iam:PassRole permission for the configuring administrator.
Setting up automatic remediation in AWS Config requires linking the compliance rule to a remediation target, such as a Systems Manager Automation document. Because Systems Manager performs the modification on the resource, it must be granted permission through an IAM service role. Additionally, the administrator setting up this remediation must possess the iam:PassRole permission to pass the role to Systems Manager.
Step-by-Step Solution
Key Concept
Configuring automatic remediation for compliance violations in AWS Config using Systems Manager Automation and appropriate IAM service roles.