From dbf96dd8311dcc57264391938ba92ce681a5b206 Mon Sep 17 00:00:00 2001 From: Danny Schofield Date: Fri, 10 May 2024 16:20:49 -0400 Subject: [PATCH] cloudformation: include reason when failed --- resourceoperation/cloudformation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resourceoperation/cloudformation.go b/resourceoperation/cloudformation.go index f87f6a2..b5f0221 100644 --- a/resourceoperation/cloudformation.go +++ b/resourceoperation/cloudformation.go @@ -194,7 +194,7 @@ func (co *cloudformationOp) executeChangeSet(ctx context.Context, changeSetID *s return cs, nil case cloudformation.ExecutionStatusExecuteFailed: - co.OutputUI.Print(fmt.Sprintf("Failed to execute change set: (%s) for path: %s", *co.Stack.CloudformationStackName(), co.Stack.Path), *co.Account) + co.OutputUI.Print(fmt.Sprintf("Failed to execute change set: (%s) for path: %s Reason: %s", *co.Stack.CloudformationStackName(), co.Stack.Path, *cs.StatusReason), *co.Account) return cs, oops.Errorf("ExecuteChangeSet failed") }