aws-architect 6.7.70 → 6.7.71
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/lib/BucketManager.js +2 -1
- package/package.json +1 -1
package/lib/BucketManager.js
CHANGED
|
@@ -172,6 +172,7 @@ class BucketManager {
|
|
|
172
172
|
}]
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
|
+
|
|
175
176
|
try {
|
|
176
177
|
await this.S3Manager.headBucket({ Bucket: bucket }).promise();
|
|
177
178
|
} catch (error) {
|
|
@@ -187,8 +188,8 @@ class BucketManager {
|
|
|
187
188
|
await this.S3Manager.putPublicAccessBlock({
|
|
188
189
|
Bucket: bucket, PublicAccessBlockConfiguration: { BlockPublicAcls: true, BlockPublicPolicy: true, IgnorePublicAcls: true, RestrictPublicBuckets: true }
|
|
189
190
|
}).promise();
|
|
191
|
+
await this.S3Manager.putBucketLifecycleConfiguration(bucketLifecycleConfigurationParams).promise();
|
|
190
192
|
}
|
|
191
|
-
await this.S3Manager.putBucketLifecycleConfiguration(bucketLifecycleConfigurationParams).promise();
|
|
192
193
|
}
|
|
193
194
|
|
|
194
195
|
// Ensures a path will be in unix format (that is, forward slash), also on Windows systems.
|