Skip to content

Commit

Permalink
Added a step to force stop the EC2 instance if it gets stuck stopping. (
Browse files Browse the repository at this point in the history
  • Loading branch information
alemartini authored and nanalakshmanan committed Jun 19, 2018
1 parent c5f93ef commit e6fdb29
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,21 @@
{
"name": "stopInstances",
"action": "aws:changeInstanceState",
"onFailure": "Continue",
"inputs": {
"InstanceIds": "{{ InstanceId }}",
"DesiredState": "stopped"
}
},
{
"name": "forceStopInstances",
"action": "aws:changeInstanceState",
"inputs": {
"InstanceIds": "{{ InstanceId }}",
"CheckStateOnly": false,
"DesiredState": "stopped",
"Force": true
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,21 @@
{
"name": "stopInstances",
"action": "aws:changeInstanceState",
"onFailure": "Continue",
"inputs": {
"InstanceIds": "{{ InstanceId }}",
"DesiredState": "stopped"
}
},
{
"name": "forceStopInstances",
"action": "aws:changeInstanceState",
"inputs": {
"InstanceIds": "{{ InstanceId }}",
"CheckStateOnly": false,
"DesiredState": "stopped",
"Force": true
}
}
]
}

0 comments on commit e6fdb29

Please sign in to comment.