An organization relies on AWS Config to verify that Amazon DynamoDB tables have point-in-time recovery (PITR) enabled. To automate the response for non-compliant tables, a SysOps administrator plans to use an Amazon EventBridge rule to execute the AWS Systems Manager (SSM) Automation document `AWS-EnableDynamoDbPointInTimeRecovery`. The SSM Automation execution requires a specific IAM service role to perform the remediation steps. Which configuration must the administrator implement to ensure the remediation process triggers successfully?
- Configure the EventBridge rule to target the SSM Automation document. Associate an IAM role with the EventBridge target that has a trust relationship with events.amazonaws.com and grants permissions for ssm:StartAutomationExecution and iam:PassRole for the SSM Automation service role.Answer
- BConfigure the EventBridge rule to target the SSM Automation document. Associate an IAM role with the EventBridge target that has a trust relationship with ssm.amazonaws.com and grants permissions for ssm:StartAutomationExecution and iam:PassRole for the SSM Automation service role.
- CConfigure the EventBridge rule to target the AWS Config rule. Configure the AWS Config rule to use the SSM Automation document as a remediation action, relying on AWS Config to automatically trigger the SSM Automation upon compliance state changes.
- DConfigure the EventBridge rule to target the SSM Automation document. Associate an IAM role with the EventBridge target that has a trust relationship with events.amazonaws.com and grants permissions for ssm:StartAutomationExecution, but omit the iam:PassRole permission as the role is only needed at document runtime.
Answer
Configure the EventBridge rule to target the SSM Automation document. Associate an IAM role with the EventBridge target that has a trust relationship with events.amazonaws.com and grants permissions for ssm:StartAutomationExecution and iam:PassRole for the SSM Automation service role.
The correct configuration targets the Systems Manager Automation document from the EventBridge rule. The IAM role assigned to the EventBridge target must trust the EventBridge service (events.amazonaws.com) to allow assumption of the role. Additionally, the role policy must grant the ssm:StartAutomationExecution permission to run the document and the iam:PassRole permission to pass the Systems Manager Automation service role that executes the underlying remediation commands.
Step-by-Step Solution
Key Concept
Configuring Amazon EventBridge rule targets for Systems Manager Automation remediation requires proper IAM trust relationships and permissions, including iam:PassRole to delegate the execution role to Systems Manager.