cloudmason 1.2.17 → 1.4.19

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.
@@ -138,12 +138,15 @@ async function launchInstance(launchParams){
138
138
  `#!/bin/bash -xe`,
139
139
  nodeRepo,
140
140
  `yum -y install nodejs`,
141
+ `yum install -y amazon-cloudwatch-agent`,
141
142
  `yum -y install python3`,
142
143
  `yum -y install unzip`,
143
144
  `npm install -g pm2`,
144
145
  `cd /home/ec2-user`,
145
146
  `aws s3 cp s3://${process.env.orgBucket}/apps/${launchParams.app.toLowerCase()}/${launchParams.version}/app.zip .`,
147
+ `sleep 10`,
146
148
  `unzip app.zip -d app`,
149
+ `touch app/ami_ok.txt`,
147
150
  `rm -r app.zip`
148
151
  ].join('\n')
149
152
 
@@ -204,8 +207,8 @@ async function waitUntilInstanceReady(instance_id,region){
204
207
  console.log('ERR:::', `Ec2 Instance Not Ready After ${totalSleepTime}s`)
205
208
  throw `Ec2 Instance Not Ready After ${totalSleepTime}s`
206
209
  } else {
207
- console.log(`Instance Ready After ${totalSleepTime}s. Waiting 30s to Proceed`);
208
- await sleep(30);
210
+ console.log(`Instance Ready After ${totalSleepTime}s. Waiting 5m to Proceed`);
211
+ await sleep(300);
209
212
  }
210
213
  return true;
211
214
  }
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"cloudmason","version":"1.2.17","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"}}
1
+ {"name":"cloudmason","version":"1.4.19","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"}}