A SysOps Administrator is configuring an AWS Systems Manager Automation workflow to automate configuration checks across a fleet of Amazon EC2 instances using a custom runbook. The SSM Agent is installed and running on all instances, and the instances are configured with an IAM instance profile containing the AmazonSSMManagedInstanceCore managed policy. The custom runbook executes a script on the instances that decrypts secure string credentials from the Systems Manager Parameter Store.
When the administrator attempts to start the Automation workflow, the execution fails to start immediately with an access denied error. In addition, manual test runs of the command on the instances fail to retrieve and decrypt the credentials.
Which two actions must the SysOps Administrator take to resolve these issues and ensure the Automation workflow runs successfully? (Select two.)
- Add the ssm:GetParameter permission and the kms:Decrypt permission for the parameter's KMS key to the IAM role associated with the EC2 instances' instance profile.Cevap
- Add the iam:PassRole permission to the administrator's IAM user policy targeting the Systems Manager Automation service role.Cevap
- CAdd the sts:AssumeRole permission to the EC2 instance profile trust policy, allowing the Systems Manager Automation service role to assume the instance profile role.
- DAdd a Patch Group tag to the EC2 instances that maps to a custom SSM Patch Baseline containing the KMS key details.
- EAdd a key policy to the KMS key that grants the Systems Manager service principal (ssm.amazonaws.com) the kms:Decrypt permission.