cloudmason 1.6.21 → 1.8.23
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/commands/launch_app.js
CHANGED
|
@@ -62,7 +62,7 @@ exports.main = async function(args){
|
|
|
62
62
|
let stackId;
|
|
63
63
|
if (stackExists){
|
|
64
64
|
const stackStatus = await CF.stackStatus(stackName,targetRegion);
|
|
65
|
-
if (stackStatus.
|
|
65
|
+
if (stackStatus.status.endsWith('_IN_PROGRESS')){
|
|
66
66
|
console.log(`Stack ${stackName} in ${targetRegion} is ${stackStatus.status}. Wait for completion before relaunching`);
|
|
67
67
|
return false;
|
|
68
68
|
}
|
package/commands/new_instance.js
CHANGED
|
@@ -95,6 +95,9 @@ async function getSubnets(region){
|
|
|
95
95
|
const subnetsData = await ec2Client.send(new DescribeSubnetsCommand({}));
|
|
96
96
|
const subNets = subnetsData.Subnets.filter(s=>{ return s.DefaultForAz === true });
|
|
97
97
|
const subnetList = subNets.map(subnet => subnet.SubnetId );
|
|
98
|
+
if (subnetList.length > 3){
|
|
99
|
+
subnetList.length = 3; // Limit to 3 subnets
|
|
100
|
+
}
|
|
98
101
|
return subnetList;
|
|
99
102
|
}
|
|
100
103
|
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"cloudmason","version":"1.
|
|
1
|
+
{"name":"cloudmason","version":"1.8.23","description":"","main":"main.js","scripts":{"build":"node build.js"},"bin":{"mason":"./main.js"},"repository":{"type":"git","url":"https://github.com/kai-harvey/secure-saas.git"},"author":"Kai Harvey","license":"ISC","dependencies":{"@aws-sdk/client-acm":"^3.418.0","@aws-sdk/client-auto-scaling":"^3.470.0","@aws-sdk/client-cloudformation":"^3.418.0","@aws-sdk/client-ec2":"^3.416.0","@aws-sdk/client-iam":"^3.418.0","@aws-sdk/client-marketplace-catalog":"^3.716.0","@aws-sdk/client-route-53":"^3.425.0","@aws-sdk/client-s3":"^3.418.0","@aws-sdk/client-ssm":"^3.421.0","adm-zip":"^0.5.10","yaml":"^2.6.1"}}
|