A SysOps administrator is configuring event-driven remediation for non-compliant security groups using AWS Config. The administrator selects the AWS Config rule `restricted-common-ports` and sets up an automatic remediation action using the AWS Systems Manager (SSM) Automation document `AWS-CloseSecurityGroup`.
The administrator creates an IAM role named `SSMRemediationRole` that has the required permissions to modify security groups and a trust relationship allowing the Systems Manager service (`ssm.amazonaws.com`) to assume the role.
When the administrator attempts to save the remediation configuration in AWS Config with the `SSMRemediationRole` ARN specified in the `AutomationAssumeRole` parameter, the operation fails with an 'Access Denied' error.
Which action will resolve this error?
- Attach an IAM policy to the administrator's IAM identity that grants the iam:PassRole permission for the SSMRemediationRole.Cevap
- BUpdate the trust relationship of the SSMRemediationRole to allow the AWS Config service (config.amazonaws.com) to assume the role.
- CCreate an Amazon EventBridge rule that triggers the Systems Manager Automation document directly, bypassing AWS Config remediation.
- DEnable detailed monitoring on the target EC2 instances and configure a CloudWatch Logs metric filter to trigger the SSM document.