Question

Difficulty: MediumEventBridge and Systems Manager Remediation

A SysOps administrator is configuring an automated remediation workflow to enable deletion protection on Amazon RDS DB instances that are flagged as non-compliant by AWS Config. The administrator creates an Amazon EventBridge rule that detects the compliance state change events and targets an AWS Systems Manager Automation runbook. The EventBridge rule must pass a specific IAM role (RDSRemediationRole) to the Systems Manager service so that the runbook can perform the modification.

Although the EventBridge rule triggers, the Automation execution fails to start with a permission error.

Which action will resolve this issue?

  1. Grant the EventBridge execution role the iam:PassRole permission for the RDSRemediationRole.Answer
  2. B
    Add events.amazonaws.com as a trusted entity in the trust policy of the RDSRemediationRole.
  3. C
    Update the EventBridge rule event pattern to include the iam:PassRole action under the target parameters.
  4. D
    Attach the AmazonSSMAutomationRole managed policy to the target RDS DB instances.

Answer

Grant the EventBridge execution role the iam:PassRole permission for the RDSRemediationRole.
The correct answer is to grant the EventBridge execution role the iam:PassRole permission for the RDSRemediationRole. In AWS, when a service (EventBridge) triggers an automation workflow in another service (Systems Manager) and passes a service role (AutomationAssumeRole) for that workflow to use, the invoking service's role must have the iam:PassRole permission. This ensures that EventBridge is authorized to pass the specified execution role to Systems Manager.

Step-by-Step Solution

1
Identify the service flow and permissions required for EventBridge to trigger Systems Manager Automation.
Determine that EventBridge acts as the caller that initiates the automation and must pass the execution role (RDSRemediationRole) to Systems Manager.
To understand why the invocation fails with a permission error.
2
Configure the EventBridge execution role's IAM policy.
Add the iam:PassRole permission specifying the RDSRemediationRole ARN as the resource.
This allows EventBridge to securely delegate permissions to Systems Manager to execute the remediation runbook.

Key Concept

IAM PassRole permissions in automated service remediation workflows
Rate this question