Skip to content

Instantly share code, notes, and snippets.

@shawnsi
Created August 7, 2020 19:11
Show Gist options
  • Save shawnsi/94b36ef5187ec8185dd931a0b5305c93 to your computer and use it in GitHub Desktop.
Save shawnsi/94b36ef5187ec8185dd931a0b5305c93 to your computer and use it in GitHub Desktop.
Stack Set Waiter Model
import botocore
_model = botocore.waiter.WaiterModel({
'version': 2,
'waiters': {
'StacksetOpComplete': {
'delay': 30,
'operation': 'DescribeStackSetOperation',
'maxAttempts': 50,
'description':
'Wait until stackset operation status is Succeeded or Failed',
'acceptors': [
{
'argument': 'StackSetOperation.Status',
'expected': 'SUCCEEDED',
'matcher': 'path',
'state': 'success',
},
{
'argument': 'StackSetOperation.Status',
'expected': 'FAILED',
'matcher': 'path',
'state': 'failure',
},
]
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment