cloudmason 1.1.15 → 1.2.17

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.
@@ -36,6 +36,7 @@ exports.main = async function(args){
36
36
  // -- Get Marketplace AMI IDs
37
37
  // AmiAlias: '/aws/service/marketplace/prod-shmtmk4gqrfge/1.2'
38
38
  const amiAlias = `/aws/service/marketplace/${pubArgs.productId}/${pubArgs.version}`;
39
+ console.log('AMI Alias:',amiAlias);
39
40
  let stackTxt = fs.readFileSync(path.resolve(args.stack),'utf8');
40
41
  stackTxt = stackTxt.replace(`ImageId: !Ref AmiId`,`ImageId: resolve:ssm:${amiAlias}`);
41
42
  stackTxt = stackTxt.replace(/^#-Strip.+#-Strip/ms,'');
@@ -59,7 +60,7 @@ const updateAmiVersion = async ({productId, amiId, version, changeDescription})
59
60
  // Define the change set to update the AMI version
60
61
  const changeSet = {
61
62
  Catalog: "AWSMarketplace",
62
- Intent: "VALIDATE",
63
+ Intent: "APPLY",
63
64
  ChangeSet: [
64
65
  {
65
66
  ChangeType: "AddDeliveryOptions",
@@ -140,6 +140,7 @@ async function launchInstance(launchParams){
140
140
  `yum -y install nodejs`,
141
141
  `yum -y install python3`,
142
142
  `yum -y install unzip`,
143
+ `npm install -g pm2`,
143
144
  `cd /home/ec2-user`,
144
145
  `aws s3 cp s3://${process.env.orgBucket}/apps/${launchParams.app.toLowerCase()}/${launchParams.version}/app.zip .`,
145
146
  `unzip app.zip -d app`,
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"cloudmason","version":"1.1.15","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.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"}}