An operations team is deploying a compliance control using AWS Config to ensure all Amazon DynamoDB tables have point-in-time recovery (PITR) enabled. To automatically correct non-compliant tables, the team intends to use an AWS Systems Manager (SSM) Automation runbook. They create a dedicated IAM role named 'SSMExecutionRole' containing the DynamoDB update permissions. During testing, when AWS Config identifies a non-compliant table, the remediation fails to execute. What configuration steps must be performed to allow AWS Config to successfully run the remediation using the specified role?
- AEstablish an EventBridge rule that monitors AWS Config compliance change events and triggers the SSM runbook directly, bypassing the native AWS Config remediation configuration.
- BModify the trust relationship of the SSMExecutionRole to authorize the config.amazonaws.com service principal, and grant the administrator's IAM policy the iam:PassRole privilege for this role.
- Modify the trust relationship of the SSMExecutionRole to authorize the ssm.amazonaws.com service principal, and grant the administrator's IAM policy the iam:PassRole privilege for this role.Cevap
- DAssign the AWSConfigServiceRolePolicy managed policy to the SSMExecutionRole, and configure the DynamoDB tables to trust the config.amazonaws.com service principal.
Cevap
Modify the trust relationship of the SSMExecutionRole to authorize the ssm.amazonaws.com service principal, and grant the administrator's IAM policy the iam:PassRole privilege for this role.
For AWS Config automatic remediation using Systems Manager (SSM) Automation, the remediation role (AutomationAssumeRole) is assumed by the Systems Manager service. Therefore, its trust relationship must allow the ssm.amazonaws.com service principal to perform the sts:AssumeRole operation. Additionally, the administrator who configures the remediation must have the iam:PassRole permission to pass the role to Systems Manager.
Adım Adım Çözüm
Anahtar Kavram
AWS Config automatic remediation requires configuring a trust relationship allowing Systems Manager to assume the remediation role, and granting iam:PassRole permissions to the user or role setting up the remediation configuration.
Tahmini Süre:2m 0s