aws-architect 6.6.33 → 6.6.34

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.
@@ -167,7 +167,8 @@ class BucketManager {
167
167
  throw { title: 'Failed to validate deployment bucket is available', error, bucket };
168
168
  }
169
169
 
170
- await this.S3Manager.createBucket({ Bucket: bucket, ObjectOwnership: 'BucketOwnerEnforced', CreateBucketConfiguration: { LocationConstraint: this.S3Manager.config.region } }).promise();
170
+ const locationConstraint = this.S3Manager.config.region !== 'us-east-1' ? this.S3Manager.config.region : undefined;
171
+ await this.S3Manager.createBucket({ Bucket: bucket, ObjectOwnership: 'BucketOwnerEnforced', CreateBucketConfiguration: { LocationConstraint: locationConstraint } }).promise();
171
172
  await this.S3Manager.putPublicAccessBlock({
172
173
  Bucket: bucket, PublicAccessBlockConfiguration: { BlockPublicAcls: true, BlockPublicPolicy: true, IgnorePublicAcls: true, RestrictPublicBuckets: true }
173
174
  }).promise();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aws-architect",
3
- "version": "6.6.33",
3
+ "version": "6.6.34",
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",