workshop/content/030_basic_content/090_scenarios/010_simulating_az_issues/020_impact_ec2-asg/ssm-template-tarpitted.yaml [110:140]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- name: VerifyInstanceStateTerminated
  action: aws:waitForAwsResourceProperty
  onFailure: 'step:Rollback'
  onCancel: 'step:Rollback'
  timeoutSeconds: 90
  inputs:
    Service: ec2
    Api: DescribeInstanceStatus
    IncludeAllInstances: true
    InstanceIds: "{{ DescribeInstances.InstanceIds }}"
    PropertySelector: "$..InstanceState.Name"
    DesiredValues:
      - terminated

- name: WaitForDuration
  action: 'aws:sleep'
  onFailure: 'step:Rollback'
  onCancel: 'step:Rollback'
  inputs:
    Duration: 'PT{{Duration}}M'

- name: Rollback
  action: aws:executeAwsApi
  inputs:
    Service: autoscaling
    Api: ResumeProcesses
    AutoScalingGroupName: "{{ AutoscalingGroupName }}"
    ScalingProcesses: ['Launch','Terminate']
  isEnd: true
outputs:
- DescribeInstances.InstanceIds
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



workshop/content/030_basic_content/090_scenarios/010_simulating_az_issues/020_impact_ec2-asg/ssm-template.yaml [70:98]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- name: VerifyInstanceStateTerminated
  action: aws:waitForAwsResourceProperty
  onFailure: 'step:Rollback'
  onCancel: 'step:Rollback'
  timeoutSeconds: 90
  inputs:
    Service: ec2
    Api: DescribeInstanceStatus
    IncludeAllInstances: true
    InstanceIds: "{{ DescribeInstances.InstanceIds }}"
    PropertySelector: "$..InstanceState.Name"
    DesiredValues:
      - terminated
- name: WaitForDuration
  action: 'aws:sleep'
  onFailure: 'step:Rollback'
  onCancel: 'step:Rollback'
  inputs:
    Duration: 'PT{{Duration}}M'
- name: Rollback
  action: aws:executeAwsApi
  inputs:
    Service: autoscaling
    Api: ResumeProcesses
    AutoScalingGroupName: "{{ AutoscalingGroupName }}"
    ScalingProcesses: ['Launch','Terminate']
  isEnd: true
outputs:
- DescribeInstances.InstanceIds
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



