A SysOps administrator is configuring automated remediation to isolate Amazon EC2 instances when Amazon GuardDuty detects command-and-control (C&C) activity. The administrator wants to use Amazon EventBridge to detect the GuardDuty finding and trigger the AWS Systems Manager Automation document AWS-StopEC2Instance to stop the affected instance. Which combination of target configuration and IAM permissions will successfully implement this automated remediation?
- AConfigure the EventBridge rule to forward the GuardDuty findings to AWS Config. Configure an AWS Config custom rule to trigger the Systems Manager Automation document as a remediation action, and attach an IAM policy to AWS Config allowing the config.amazonaws.com service principal to perform the ssm:StartAutomationExecution action.
- BConfigure the EventBridge rule with the Systems Manager Automation document as the target. Provide an IAM service role for EventBridge that allows the events.amazonaws.com service principal to assume it, and attach a policy allowing ssm:StartAutomationExecution for the target document, relying on the Automation document's default execution permissions without iam:PassRole.
- Configure the EventBridge rule with the Systems Manager Automation document as the target. Provide an IAM service role for EventBridge that allows the events.amazonaws.com service principal to assume it, and attach a policy allowing ssm:StartAutomationExecution for the target document and iam:PassRole for the Systems Manager Automation execution role.Cevap
- DConfigure the EventBridge rule with the Systems Manager Automation document as the target. Modify the IAM trust policy of the Systems Manager Automation execution role to trust events.amazonaws.com directly, and use an EventBridge input transformer to map the EC2 instance ID to the execution role ARN in the target payload.
Cevap
Configure the EventBridge rule with the Systems Manager Automation document as the target. Provide an IAM service role for EventBridge that allows the events.amazonaws.com service principal to assume it, and attach a policy allowing ssm:StartAutomationExecution for the target document and iam:PassRole for the Systems Manager Automation execution role.
The correct option correctly configures the EventBridge rule target to the Systems Manager Automation document, and grants EventBridge the necessary IAM permissions. Specifically, it allows EventBridge to assume a role to call ssm:StartAutomationExecution on the target document and includes the iam:PassRole permission so that EventBridge can pass the Systems Manager Automation execution role to the Systems Manager service, which executes the actions.
Adım Adım Çözüm
Anahtar Kavram
Configuring event-driven automated remediation using Amazon EventBridge and AWS Systems Manager Automation requires setting up an IAM service role for EventBridge with both the ssm:StartAutomationExecution permission and the iam:PassRole permission to securely pass the execution role to Systems Manager.
Tahmini Süre:3m 0s