From 0b244628878810633c0b3b5bbca4e46f9add68f5 Mon Sep 17 00:00:00 2001 From: Tyler Gohl Date: Fri, 5 Nov 2021 11:00:08 -0400 Subject: [PATCH] Adds retry for InvalidTemplateError and GenericAccountConfigureError to CreateOrUpdateBaseStack task (#384) --- src/template.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/template.yml b/src/template.yml index dfe735ca3..ee39a390e 100644 --- a/src/template.yml +++ b/src/template.yml @@ -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": {