A SysOps administrator is troubleshooting an automated compliance remediation workflow. An Amazon EventBridge rule is configured to detect non-compliant Amazon S3 buckets reported by AWS Config and trigger an AWS Systems Manager (SSM) Automation runbook to remediate them. The EventBridge rule successfully fires, but the Systems Manager Automation execution fails immediately with an access denied error. Which of the following actions are required to resolve this issue? (Select TWO.)
- Attach an IAM policy to the EventBridge execution role that grants the iam:PassRole permission for the Systems Manager Automation service role.Answer
- Configure the trust policy of the Systems Manager Automation service role to allow the ssm.amazonaws.com service principal to assume the role.Answer
- CModify the AWS Config rule's remediation configuration to execute the runbook directly, as Amazon EventBridge rules cannot target Systems Manager Automation.
- DEnable CloudWatch detailed monitoring on the target S3 buckets to ensure EventBridge receives compliance status events within one minute.
- EModify the log retention policy of the AWS Config delivery channel's CloudWatch Logs log group to keep logs indefinitely.
Answer
Attach an IAM policy to the EventBridge execution role that grants the iam:PassRole permission for the Systems Manager Automation service role, and configure the trust policy of the Systems Manager Automation service role to allow the ssm.amazonaws.com service principal to assume the role.
To resolve the access denied error when Amazon EventBridge triggers Systems Manager Automation, two permissions must be configured. First, the EventBridge execution role must be granted the iam:PassRole permission for the Systems Manager Automation service role. Second, the Systems Manager Automation service role must trust the ssm.amazonaws.com service principal so that the Systems Manager service can successfully assume the role to run the remediation steps.
Step-by-Step Solution
Key Concept
IAM permissions and service trust relationships required for EventBridge to trigger Systems Manager Automation.