Skip to content

Commit

Permalink
Merge pull request #582 from magieno/updated-cloudformation-client
Browse files Browse the repository at this point in the history
- Update
  • Loading branch information
etiennenoel authored Oct 18, 2023
2 parents 571d097 + 3b3b02a commit 0f023e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/aws/src/clients/cloudformation.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ export class CloudformationClient implements CloudformationClientInterface {
return response.Stacks[0];
} catch (e) {
this.logHandler.error("Error getting stack description from cloudformation", {error: e}, AwsModuleKeyname);
if (e.getMessage().matches("(.*)" + stackName + "(.*)does not exist(.*)")) {
return undefined;
} else {
throw e;
}
throw e;
}
}
Expand Down

0 comments on commit 0f023e9

Please sign in to comment.