An organization wants to automatically remediate Amazon SQS queues that are created without server-side encryption (SSE). An AWS Config rule evaluates the queues and generates compliance change events. A SysOps administrator wants to use Amazon EventBridge to detect these compliance changes and trigger the AWS-provided AWS-EnableSQSQueueEncryption Systems Manager Automation document to encrypt the non-compliant queues.
Which two configuration actions must the administrator perform to successfully set up this automated remediation pipeline? (Select TWO.)
- Configure the EventBridge rule target to use the Input Transformer to extract the SQS queue URL from the AWS Config event details and map it to the Systems Manager Automation document parameters.Cevap
- Create an IAM role for EventBridge that grants ssm:StartAutomationExecution permissions for the Systems Manager Automation document and iam:PassRole permissions for the Systems Manager Automation service role.Cevap
- CConfigure the Systems Manager Automation service role trust policy to trust the SQS service principal, and attach the sqs:SetQueueAttributes permission directly to the EventBridge execution role.
- DConfigure the EventBridge rule target to point directly to the non-compliant SQS queue, and apply an SQS resource policy that grants the EventBridge service principal permissions to alter queue settings.
- EConfigure the AWS Config rule to use an EventBridge rule pattern to directly invoke the SQS queue's API without using Systems Manager.
Cevap
To configure the remediation pipeline, the administrator must configure the EventBridge rule target to use the Input Transformer to extract the SQS queue URL from the AWS Config event details and map it to the Systems Manager Automation document parameters, and create an IAM role for EventBridge that grants ssm:StartAutomationExecution permissions for the Systems Manager Automation document and iam:PassRole permissions for the Systems Manager Automation service role.
To set up the automated remediation pipeline, two main components must be configured: event data mapping and IAM permissions. First, since the Systems Manager Automation document requires the SQS queue URL as an input, and this URL is nested inside the AWS Config event payload, the administrator must configure the EventBridge target with an Input Transformer to map the SQS queue URL from the event payload to the automation document's parameters. Second, the EventBridge rule needs permissions to invoke the Systems Manager Automation document via the ssm:StartAutomationExecution API, and it must have the iam:PassRole permission to pass the Systems Manager Automation service role to the Systems Manager service for execution.
Adım Adım Çözüm
Anahtar Kavram
Configuring event-driven automated remediation pipelines using AWS Config compliance change events, Amazon EventBridge, and AWS Systems Manager Automation.
Tahmini Süre:2m 0s