A SysOps administrator wants to automate the remediation of non-compliant resources. AWS Config is configured with the `vpc-flow-logs-enabled` rule to monitor compliance. The administrator wants to use Amazon EventBridge and an AWS Systems Manager (SSM) Automation runbook to automatically enable VPC Flow Logs whenever a VPC is flagged as non-compliant. Which two configuration actions must the administrator perform to set up this remediation pipeline?
- Create an Amazon EventBridge rule with an event pattern that filters for AWS Config compliance change events where the compliance type is 'NON_COMPLIANT' for the `vpc-flow-logs-enabled` rule, and specify the Systems Manager Automation runbook as the target.Cevap
- Attach an IAM policy to the EventBridge rule's IAM role that grants the `ssm:StartAutomationExecution` permission for the target Systems Manager Automation runbook.Cevap
- CCreate a CloudWatch log metric filter to scan AWS Config logs for non-compliant VPCs, and configure a CloudWatch alarm to trigger the Systems Manager Automation runbook.
- DAssociate the `iam:PassRole` permission with the EventBridge service role to allow EventBridge to pass the flow logs role directly to AWS Config.
- EConfigure an Amazon SNS topic as the EventBridge rule target, and subscribe the Systems Manager Automation runbook directly to the SNS topic.
Cevap
The correct configuration actions are creating an Amazon EventBridge rule that filters for AWS Config compliance change events and targets the runbook, and granting the `ssm:StartAutomationExecution` permission to the EventBridge rule's IAM role.
The correct setup involves configuring an Amazon EventBridge rule that filters for AWS Config compliance change events (specifically for the rule checking VPC flow logs) and targets the Systems Manager Automation runbook. To execute the runbook, the EventBridge rule's IAM role must be granted the `ssm:StartAutomationExecution` permission.
Adım Adım Çözüm
Anahtar Kavram
EventBridge rules can target AWS Systems Manager Automation runbooks to perform automated remediation when AWS Config detects compliance status changes.