Skip to content

Commit

Permalink
cloudformation: include reason when failed
Browse files Browse the repository at this point in the history
  • Loading branch information
dschofie committed May 10, 2024
1 parent 61ef8b4 commit dbf96dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resourceoperation/cloudformation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit dbf96dd

Please sign in to comment.