A company is using AWS Config to monitor security compliance. A SysOps administrator needs to automate the remediation of publicly accessible Amazon Redshift clusters. The administrator has verified that the AWS Config rule redshift-cluster-public-access-check is active. An AWS Systems Manager Automation document named AWS-RevokeRedshiftClusterPublicAccess will be used to remediate non-compliant clusters.
Which two configuration actions must the SysOps administrator perform to establish this automated remediation pipeline? (Select TWO.)
- Create an Amazon EventBridge rule that triggers when an AWS Config Rules compliance change event has a complianceType of NON_COMPLIANT for the redshift-cluster-public-access-check rule.Answer
- Configure the Systems Manager Automation document as the target for the EventBridge rule, specifying an IAM role that grants EventBridge permission to start the automation.Answer
- CCreate an Amazon EventBridge rule that triggers when a CloudWatch metric alarm for Redshift public access goes into the ALARM state, using an input transformer to extract the cluster identifier.
- DConfigure an AWS Systems Manager State Manager association to query AWS Config compliance status hourly and invoke the Automation document on non-compliant clusters.
- EAttach an IAM policy to the AWS Config service role that allows sts:AssumeRole to directly execute the Systems Manager Automation document without using EventBridge.
Answer
Create an EventBridge rule that triggers on AWS Config non-compliant compliance change events, and target the Systems Manager Automation document using an IAM role that grants EventBridge permission to execute the automation.
To automate compliance remediation, an Amazon EventBridge rule must be configured to capture compliance status changes from AWS Config. When the Config rule for Redshift public access evaluates a resource as non-compliant, it generates a 'Config Rules Compliance Change' event with a complianceType of NON_COMPLIANT. The EventBridge rule matches this event pattern. The target of this EventBridge rule must be the Systems Manager Automation document. To invoke this target, EventBridge requires an IAM service role with permission to execute the automation document, which is specified when setting up the target.
Step-by-Step Solution
Key Concept
Event-driven remediation using AWS Config compliance events, Amazon EventBridge rules, and AWS Systems Manager Automation.