A SysOps Administrator is configuring an AWS Systems Manager Automation workflow to automate administrative tasks across a fleet of Amazon EC2 instances. The administrator creates a custom IAM role named SSMAutomationServiceRole to grant Systems Manager permissions to perform actions on other AWS resources. When the administrator attempts to start the execution of the Automation workflow using the AWS Command Line Interface (AWS CLI), the execution fails immediately with an access denied error indicating that the user is not authorized to perform iam:PassRole on the service role resource.
The administrator's user account already has the AmazonSSMFullAccess policy attached. The SSM Agent is running on all target EC2 instances, and the AmazonSSMManagedInstanceCore policy is attached to the instance profiles.
Which of the following actions will resolve this failure?
- AModify the trust policy of the SSMAutomationServiceRole to allow the administrator's IAM user to perform the sts:AssumeRole action.
- BConfigure a patch group tag key named Patch Group on the target EC2 instances and associate it with the default patch baseline.
- Attach an IAM policy to the administrator's IAM user that permits the iam:PassRole action on the SSMAutomationServiceRole resource.Cevap
- DAssociate the SSMAutomationServiceRole with the IAM instance profile of the target Amazon EC2 instances.