aws-architect 6.7.87 → 6.7.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/lib/CloudFormationDeployer.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,7 @@ This is the changelog for [AWS Architect](readme.md).
|
|
|
9
9
|
* Support the new version of openapi-factory 5.4.
|
|
10
10
|
* Duplicate all .html files as cleaned files. `file.html` => `file` and `file/`, all three will work
|
|
11
11
|
* Fix validateTemplate so that it actually uses S3 when available.
|
|
12
|
+
* Add support for new status `CONFIGURATION_COMPLETE`
|
|
12
13
|
|
|
13
14
|
## 6.6 ##
|
|
14
15
|
* Add support to `deleteWebsiteVersion(version)`
|
|
@@ -67,6 +67,7 @@ class CloudFormationDeployer {
|
|
|
67
67
|
}
|
|
68
68
|
let stackStatus = data.Stacks[0].StackStatus;
|
|
69
69
|
let stackExistsDict = {
|
|
70
|
+
CONFIGURATION_COMPLETE: true,
|
|
70
71
|
CREATE_COMPLETE: true,
|
|
71
72
|
UPDATE_COMPLETE: true,
|
|
72
73
|
UPDATE_ROLLBACK_COMPLETE: true
|
|
@@ -141,7 +142,7 @@ class CloudFormationDeployer {
|
|
|
141
142
|
throw { title: 'Deployment to the stack failed.', status: stackStatus, code: stackStatus };
|
|
142
143
|
}
|
|
143
144
|
|
|
144
|
-
if (stackStatus.match(/PROGRESS$/i)) {
|
|
145
|
+
if (stackStatus.match(/PROGRESS$/i) || stackStatus === 'CONFIGURATION_COMPLETE') {
|
|
145
146
|
return iteratePromise();
|
|
146
147
|
}
|
|
147
148
|
|
|
@@ -377,7 +378,7 @@ class CloudFormationDeployer {
|
|
|
377
378
|
|
|
378
379
|
// If the stack already existed, and there are no new regions, all the stacks are updated then check to see if the template matches the new template
|
|
379
380
|
if (stackExists && !newRegions && existingStacks.every(s => s.Status === 'CURRENT')) {
|
|
380
|
-
const regionStacks = await this.cloudFormationClient.listStacks({ StackStatusFilter: ['CREATE_COMPLETE', 'UPDATE_COMPLETE', 'UPDATE_ROLLBACK_COMPLETE'] }).promise()
|
|
381
|
+
const regionStacks = await this.cloudFormationClient.listStacks({ StackStatusFilter: ['CONFIGURATION_COMPLETE', 'CREATE_COMPLETE', 'UPDATE_COMPLETE', 'UPDATE_ROLLBACK_COMPLETE'] }).promise()
|
|
381
382
|
.then(r => r.StackSummaries);
|
|
382
383
|
|
|
383
384
|
const thisRegionsStackId = existingStacks.find(s => s.Region === this.cloudFormationClient.config.region).StackId;
|