AWS Systems Manager Automation failed execution

0

AWS Systems Manager Automation failed execution

Was restoring EC2 from snapshot and the automation failed (AWSSupport-RestoreEC2InstanceFromSnapshot). ref: https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport-restoreec2instancefromsnapshot.html https://us-east-1.console.aws.amazon.com/systems-manager/automation/execute/AWSSupport-RestoreEC2InstanceFromSnapshot?region=us-east-1

The two attempted executions both show status as failed and haven't cleared. https://us-east-1.console.aws.amazon.com/systems-manager/automation/executions?region=us-east-1

The execution detail still shows status "pending" for the remaining steps, and the [Cancel Execution] button isn't enabled. https://us-east-1.console.aws.amazon.com/systems-manager/automation/execution/a8fe0abba0abba0abba0abba...

Now the "Execute automation runbook" fails at "checkForConcurrentExecution" - how can I clear the queue so this will run to completion?

질문됨 6달 전228회 조회
2개 답변
0
수락된 답변

Thank you for your rePost question. My name is Yogesh - an AWS Support Engineer who will be addressing your inquiry today.

In the AWS SSM Automation document 'AWSSupport-RestoreEC2InstanceFromSnapshot', step 'checkForConcurrentExecution' is at #4.

Please Click on 'Execution ID' and then step id (#4). Please share the error message seen here.

According to the execution of the automation steps, irrespective of the status of previous steps, the following steps will be in pending. However, it is the 'Overall Status of Automation execution' that determines whether the execution was failed / succeeded. [1] Hence, to clear or cancel,

To Stop an automation Execution (if the cancel button is disabled), please attempt to use the below CLI Command. [2] (However, Kindly note that the 'already completed automation, be it successful or failed, cannot be cancelled).

aws ssm stop-automation-execution --automation-execution-id "4105a4fc-f944-11e6-9d32-0a1b2EXAMPLE"

(execution id shared above is sample, shall be replaced with original automation execution id)

If any inputs shared above requires clarifications, kindly post the same and shall be glad to assist on it.

References:

[1] https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-statuses.html#automation-statuses-about

[2] https://docs.aws.amazon.com/cli/latest/reference/ssm/stop-automation-execution.html

답변함 6달 전
0

AWS staff confirmed the script has an error for certain conditions and does not properly validate the input fields.

ref: Case ID: 14308537081

답변함 6달 전

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

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

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

관련 콘텐츠