cloudmason 2.2.40 → 2.2.41

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.
@@ -27,10 +27,10 @@ exports.main = async function(args){
27
27
  throw new Error('Version not found:' + pubArgs.version);
28
28
  }
29
29
  pubArgs.amiId = instanceVersion.baseAMI_Id;
30
- const arch = instanceVersion.arch || 'x86_64';
30
+ pubArgs.arch = instanceVersion.arch || 'x86_64';
31
31
  console.log('Publishing AMI:\n\t',Object.entries(pubArgs).map(([k,v])=>{return `${k}:${v}`}).join('\n\t'));
32
32
  console.log('----------')
33
-
33
+
34
34
  // -- Publish AMI to Marketplace
35
35
  await updateAmiVersion(pubArgs);
36
36
 
@@ -59,7 +59,7 @@ exports.main = async function(args){
59
59
 
60
60
  // Update AMI Function
61
61
 
62
- const updateAmiVersion = async ({productId, amiId, version, changeDescription}) => {
62
+ const updateAmiVersion = async ({productId, amiId, version, changeDescription, arch}) => {
63
63
  const client = new MarketplaceCatalogClient({ region: process.env.orgRegion }); // Update the region if needed
64
64
  console.log('Updating AMI version:',productId, amiId, version, changeDescription);
65
65
  try {
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"cloudmason","version":"2.2.40","description":"","main":"main.js","scripts":{"build":"node build.js"},"bin":{"mason":"./main.js"},"repository":{"type":"git","url":"https://github.com/kai-harvey/cloudmason.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.864.0","@aws-sdk/client-iam":"^3.864.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","ssh2":"^1.16.0","yaml":"^2.6.1"}}
1
+ {"name":"cloudmason","version":"2.2.41","description":"","main":"main.js","scripts":{"build":"node build.js"},"bin":{"mason":"./main.js"},"repository":{"type":"git","url":"https://github.com/kai-harvey/cloudmason.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.864.0","@aws-sdk/client-iam":"^3.864.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","ssh2":"^1.16.0","yaml":"^2.6.1"}}