SSM Automation Document in State Manager error InvalidAutomationParameters

0

I'm getting an InvalidAutomationParameters error after running a State Manager Association that uses an SSM Automation Document. I am having the same issue with all SSM Automation Documents I'm trying, but currently trying the AWS-RestartEC2Instance Automation Document. I have no issues running the Automation manually. I have no issues creating the State Manager Association, providing both parameters AutomationAssumeRole and InstanceId (I'm using AWSServiceRoleForAmazonSSM and a valid running Instance). However, whenever I run the Association, it fails with InvalidAutomationParameters error. If anybody can get this running properly, please provide what options used when creating the association.

TBO
질문됨 일 년 전836회 조회
1개 답변
0
수락된 답변

Name:test
Document:AWS-RestartEC2Instance
Execution:Simple execution
InstanceId:i-xxxxxxxxx (your instance id)
AutomationAssumeRole:SSMAutomationRole
Specify schedule:On Schedule
Specify with:CRON/Rate expression
CRON/Rate expression:rate(30 minutes)

ssm1

The execution is successful with this configuration.

profile picture
전문가
답변함 10달 전
profile picture
전문가
검토됨 10달 전
  • Thanks for your reply, I've done everything the same as your setup except for the AutomationAssumeRole and is still failing for me with the same error. AWS documentation and the note on the Create Association page say to use the service-linked role AWSServiceRoleForAmazonSSM. Looks like the SSMAutomationRole you are using is not built-in, can you please tell me what policies are attached to that role?

  • The AutomationAssumeRole is created using the procedure described in this document. https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-setup-iam.html
    The policy used is "AmazonSSMAutomationRole".

  • Thanks for the help. Creating a new role as described in the document got it working for me. The note on the Create Association page to use the service-linked role AWSServiceRoleForAmazonSSM is what threw we off.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠