An administrator wants to implement automatic remediation for non-compliant resources detected by an AWS Config rule. The rule identifies Amazon S3 buckets that allow public read access. The administrator plans to use the `AWS-DisableS3BucketPublicReadWrite` Systems Manager (SSM) Automation document as the remediation action. During configuration, the administrator encounters permission errors and the remediation fails to run.
Which actions must the administrator take to successfully resolve the permission issues and enable the automated remediation? (Select TWO.)
- Configure an IAM execution role with a trust policy that allows the ssm.amazonaws.com service principal to assume it, and attach policies granting permissions to modify S3 bucket settings.Answer
- Grant iam:PassRole permissions for the Systems Manager execution role to the IAM identity configuring the AWS Config remediation action.Answer
- CAttach an IAM policy to the target Amazon S3 buckets granting the iam:PassRole permission to the AWS Config service-linked role.
- DConfigure an Amazon EventBridge rule with a target that points directly to the Amazon S3 service API to block public access, passing the AWS Config service role.
- EEnable detailed monitoring in Amazon CloudWatch for the AWS Config rules to reduce the evaluation latency to 1-minute intervals.
Answer
The administrator must configure an IAM execution role with a trust policy that allows the ssm.amazonaws.com service principal to assume it (with permissions to modify S3 settings), and grant the iam:PassRole permission for the execution role to the IAM identity configuring the remediation.
To remediate non-compliant resources automatically via AWS Config and Systems Manager Automation, two requirements must be satisfied. First, a role assumed by Systems Manager (ssm.amazonaws.com) must exist and have permissions to perform the corrective actions on S3. Second, the user or service principal initiating the automation setup must possess the iam:PassRole permission to pass this execution role to Systems Manager.
Step-by-Step Solution
Key Concept
AWS Config automated remediation using Systems Manager Automation documents requires configuring service trust relationships and granting the administrator iam:PassRole permissions to delegate roles to the service.