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.
@@ -30,4 +30,5 @@ export type StaticWebsite = {
30
30
  destroy?: boolean;
31
31
  priceClass?: "PriceClass_All" | "PriceClass_200" | "PriceClass_100";
32
32
  cachePolicyId?: Input<string>;
33
+ objectOwnership?: string;
33
34
  };
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcl-ops-lib",
3
- "version": "6.3.0",
3
+ "version": "6.4.0",
4
4
  "scripts": {
5
5
  "build": "tsc && cp bin/* . && node test.js",
6
6
  "clean": "rm *.d.ts *.js *.js.map"