dcl-ops-lib 6.3.0 → 6.4.0
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/StaticWebsite.d.ts +1 -0
- package/buildStatic.js +8 -0
- package/package.json +1 -1
package/StaticWebsite.d.ts
CHANGED
package/buildStatic.js
CHANGED
|
@@ -38,6 +38,14 @@ function buildStatic(staticSite) {
|
|
|
38
38
|
const contentBucket = new aws.s3.Bucket(slug + "contentBucket", bucketInfo, {
|
|
39
39
|
protect,
|
|
40
40
|
});
|
|
41
|
+
if (staticSite.objectOwnership) {
|
|
42
|
+
new aws.s3.BucketOwnershipControls(`${contentBucket.bucket}OwnershipControls`, {
|
|
43
|
+
bucket: contentBucket.bucket,
|
|
44
|
+
rule: {
|
|
45
|
+
objectOwnership: staticSite.objectOwnership
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
41
49
|
// logsBucket is an S3 bucket that will contain the CDN's request logs.
|
|
42
50
|
const logsBucket = new aws.s3.Bucket(slug + "logs", {
|
|
43
51
|
acl: "private",
|