cloudmason 1.0.9 → 1.0.10

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/build.js CHANGED
@@ -18,4 +18,5 @@ pckg.version = version;
18
18
 
19
19
  console.log(`Version: ${version}`);
20
20
 
21
- fs.writeFileSync('./package.json', JSON.stringify(pckg));
21
+ fs.writeFileSync('./package.json', JSON.stringify(pckg));
22
+
@@ -33,7 +33,7 @@ exports.main = async function(args){
33
33
  // I.I WAIT FOR AMI TO BE AVAILABLE
34
34
  console.log(`Waiting for AMI ${targetAMI} to be available`);
35
35
  let isAvailable = false;
36
- for (let i = 0; i < 15; i++){
36
+ for (let i = 0; i < 24; i++){
37
37
  const status = await EC2.checkAMIStatus(targetAMI,targetRegion);
38
38
  if (status === true){
39
39
  console.log(`AMI ${targetAMI} available after ${i*30}s`);
@@ -43,7 +43,7 @@ exports.main = async function(args){
43
43
  console.log(`\tAMI Status Check ${i} @${i*30}s : Not Available`);
44
44
  await Common.sleep(30);
45
45
  }
46
- if (!isAvailable){ throw new Error('AMI not available after 7 minutes. Try again in a few minutes.') }
46
+ if (!isAvailable){ throw new Error(`AMI not available after 14 minutes. Try again in a few minutes.`) }
47
47
 
48
48
  // --- II DEPLOY CF STACK ---
49
49
  // Get Stack URL
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"cloudmason","version":"1.0.9","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-route-53":"^3.425.0","@aws-sdk/client-s3":"^3.418.0","@aws-sdk/client-ssm":"^3.421.0","adm-zip":"^0.5.10"}}
1
+ {"name":"cloudmason","version":"1.0.10","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-route-53":"^3.425.0","@aws-sdk/client-s3":"^3.418.0","@aws-sdk/client-ssm":"^3.421.0","adm-zip":"^0.5.10"}}