Skip to content

Commit

Permalink
Merge pull request #698 from magieno/fix-cloudformation-client
Browse files Browse the repository at this point in the history
- Update.
  • Loading branch information
etiennenoel authored May 24, 2024
2 parents 0c584f7 + cf810ed commit 8dea5fb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/aws/src/clients/cloudformation.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,12 @@ export class CloudformationClient implements CloudformationClientInterface {
return CloudformationDeploymentStatusEnum.Completed;

case ChangeSetStatus.FAILED:
if(response.StatusReason == "The submitted information didn't contain changes. Submit different information to create a change set.") {
return CloudformationDeploymentStatusEnum.NoChangesToPerform;
switch(response.StatusReason) {
case "No updates are to be performed.":
case "The submitted information didn't contain changes. Submit different information to create a change set.":
return CloudformationDeploymentStatusEnum.NoChangesToPerform;
default:
return CloudformationDeploymentStatusEnum.Failed;
}
case ChangeSetStatus.DELETE_FAILED:
this.logHandler.error("Error with the ChangeSet.", {response}, AwsModuleKeyname)
Expand Down

0 comments on commit 8dea5fb

Please sign in to comment.