cloudmason 1.2.16 → 1.3.18
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/update_app.js +4 -0
- package/package.json +1 -1
package/commands/update_app.js
CHANGED
|
@@ -138,11 +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`,
|
|
144
|
+
`npm install -g pm2`,
|
|
143
145
|
`cd /home/ec2-user`,
|
|
144
146
|
`aws s3 cp s3://${process.env.orgBucket}/apps/${launchParams.app.toLowerCase()}/${launchParams.version}/app.zip .`,
|
|
147
|
+
`sleep 30`,
|
|
145
148
|
`unzip app.zip -d app`,
|
|
149
|
+
`touch app/ami_ok.txt`,
|
|
146
150
|
`rm -r app.zip`
|
|
147
151
|
].join('\n')
|
|
148
152
|
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"cloudmason","version":"1.
|
|
1
|
+
{"name":"cloudmason","version":"1.3.18","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"}}
|