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