AWS-StartEC2Instance timeout

0

It appears that the AWS-StartEC2Instance Automation does not work.
I have a Maintenance Window with a Task targeting an instance by ID. When the MW executes, it fails with the following error:
Automation Step Execution fails when it is verifying the instance(s) have reached desired state.
Get Exception from DescribeInstanceStatus API of ec2 Service.
Exception Message from DescribeInstanceStatus API:
Request has expired. (Service: AmazonEC2; Status Code: 400; Error Code: RequestExpired; Request ID: a6647f3c-f218-451c-adb8-8a670236c1c0).
Please refer to Automation Service Troubleshooting Guide for more diagnosis details.
I have specified a role configured according to https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-walk-security-assume.html.
Note that the AWS-StopEC2Instance does execute without error.
Has anyone out there had success using this Automation?

已提問 5 年前檢視次數 554 次
1 個回答
0

After splunking through the CloudTrail logs, I was able to determine that the problem was related to our use of encrypted EBS volumes (encrypted with our own KMS key). I needed to grant kms:CreateGrant to the role that is executing the automation

已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南