aws-architect 6.7.137 → 6.7.139

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.
@@ -292,7 +292,12 @@ class CloudFormationDeployer {
292
292
  'No updates are to be performed.': true
293
293
  };
294
294
  if (!noUpdatesDict[changeSetResponse.StatusReason]) {
295
- let changeSetFailureError = { title: 'Failed to create changeset', details: changeSetResponse };
295
+ let events;
296
+ if (changeSetResponse.StatusReason && changeSetResponse.StatusReason.includes('AWS::EarlyValidation::PropertyValidation')) {
297
+ events = await this.cloudFormationClient.describeStackEvents({ StackName: options.stackName }).promise();
298
+ }
299
+
300
+ const changeSetFailureError = { title: 'Failed to create changeset, review the stack events', details: changeSetResponse, events };
296
301
  throw changeSetFailureError;
297
302
  }
298
303
 
@@ -351,7 +356,7 @@ class CloudFormationDeployer {
351
356
  InnerStack: {
352
357
  Type: 'AWS::CloudFormation::Stack',
353
358
  Properties: {
354
- Parameters: parameters,
359
+ Parameters: parameters || {},
355
360
  Tags: options.tags ? Object.keys(options.tags).map(t => ({ Key: t, Value: options.tags[t] })) : undefined,
356
361
  TemplateURL: `https://s3.amazonaws.com/${this.deploymentBucket}/${templateUrl}`,
357
362
  TimeoutInMinutes: 180
@@ -499,7 +504,7 @@ class CloudFormationDeployer {
499
504
  Capabilities: ['CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM', 'CAPABILITY_AUTO_EXPAND'],
500
505
  Tags: options.tags ? Object.keys(options.tags).map(t => ({ Key: t, Value: options.tags[t] })) : undefined,
501
506
  TemplateBody: templateString,
502
- Parameters: parameters || {}
507
+ Parameters: Object.keys(parameters || {}).map(p => ({ ParameterKey: p, ParameterValue: parameters[p] }))
503
508
  };
504
509
 
505
510
  const stackExists = await this.stackSetExists(options.stackSetName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aws-architect",
3
- "version": "6.7.137",
3
+ "version": "6.7.139",
4
4
  "description": "AWS Architect is a node based tool to configure and deploy AWS-based microservices.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -77,6 +77,6 @@
77
77
  },
78
78
  "homepage": "https://github.com/Authress-Engineering/aws-architect.js#readme",
79
79
  "engines": {
80
- "node": ">=12.20"
80
+ "node": ">=18"
81
81
  }
82
82
  }