Skip to content

Commit

Permalink
Adds retry for InvalidTemplateError and GenericAccountConfigureError …
Browse files Browse the repository at this point in the history
…to CreateOrUpdateBaseStack task (#384)
  • Loading branch information
tylergohl authored Nov 5, 2021
1 parent e152e43 commit 0b24462
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -670,12 +670,18 @@ Resources:
"CreateOrUpdateBaseStack": {
"Type": "Task",
"Resource": "${CrossAccountExecuteFunction.Arn}",
"Next": "WaitUntilBootstrapComplete",
"Retry": [{
"ErrorEquals": ["InvalidTemplateError", "GenericAccountConfigureError"],
"IntervalSeconds": 1,
"BackoffRate": 1.1,
"MaxAttempts": 45
}],
"Catch": [{
"ErrorEquals": ["States.ALL"],
"Next": "ExecuteDeploymentAccountStateMachine",
"ResultPath": "$.error"
}],
"Next": "WaitUntilBootstrapComplete",
"TimeoutSeconds": 600
},
"MovedToRootAction": {
Expand Down

0 comments on commit 0b24462

Please sign in to comment.