A SysOps Administrator is configuring compliance monitoring for Amazon EC2 security groups. The administrator deploys the restricted-common-ports AWS Config rule to detect security groups that allow unrestricted ingress to common ports. The administrator wants to configure automated remediation to automatically revoke the non-compliant ingress rules using the AWS-DisablePublicAccessForSecurityGroup Systems Manager (SSM) Automation document. The administrator creates an Amazon EventBridge rule to detect when a security group changes to a non-compliant state and configures it to trigger the SSM Automation document directly. However, the automation fails to execute because the target configuration is not passing the specific security group ID from the event payload to the SSM document. How can the administrator resolve this issue with the least administrative effort?
- Configure the remediation action directly within the AWS Config rule, selecting the Systems Manager Automation document and mapping the security group ID parameter to the AWS Config Resource ID.Answer
- BConfigure the EventBridge rule to target the AWS Config remediation action, and configure the target's input path to point to the Config rule's execution context.
- CAdd the iam:PassRole permission to the AWS Config service-linked role, and update the EventBridge rule target to pass the role's Amazon Resource Name (ARN) in the input payload.
- DCreate a custom AWS Config rule that triggers an Amazon SNS topic, and subscribe the Systems Manager Automation document to the SNS topic to automatically parse the security group ID.