A SysOps administrator is configuring an automated remediation workflow to enable Amazon S3 Block Public Access on any S3 bucket when a PutBucketPolicy API call is detected. The administrator creates an Amazon EventBridge rule that filters CloudTrail API events for PutBucketPolicy and targets the AWS Systems Manager Automation document AWS-ConfigureS3BucketPublicAccessBlock. The Automation document requires an execution role (AutomationAssumeRole) to perform the configuration changes. However, the execution fails to start when a policy changes.
Which of the following configuration steps must the SysOps administrator perform to successfully implement this automated remediation? (Select TWO.)
- Configure the EventBridge target to use an IAM service role that contains ssm:StartAutomationExecution permissions for the target Systems Manager Automation document.Cevap
- Grant the EventBridge execution role iam:PassRole permissions for the Systems Manager Automation execution role.Cevap
- CModify the trust relationship of the Systems Manager Automation execution role to allow the EventBridge service role to call sts:AssumeRole directly instead of passing the role.
- DCreate a CloudWatch metric filter for PutBucketPolicy events and configure it to trigger the Systems Manager Automation document as a CloudWatch alarm action.
- EEnable detailed monitoring on the S3 buckets to reduce event delivery latency and trigger the EventBridge rule.
Cevap
Configure the EventBridge target to use an IAM service role that contains ssm:StartAutomationExecution permissions for the target Systems Manager Automation document, and grant the EventBridge execution role iam:PassRole permissions for the Systems Manager Automation execution role.
To successfully execute automated remediation using Amazon EventBridge and AWS Systems Manager Automation, two authorization steps are necessary: first, the EventBridge rule must assume a role that permits starting the automation execution (ssm:StartAutomationExecution). Second, because Systems Manager must assume an execution role to perform the S3 bucket configuration change, the EventBridge role must be permitted to pass this execution role (iam:PassRole) to Systems Manager.
Adım Adım Çözüm
Anahtar Kavram
Configuring correct IAM permissions and service integration targets for event-driven Systems Manager Automation via Amazon EventBridge.