@codedazur/cdk-docker-cluster 0.7.0 → 0.9.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/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @codedazur/cdk-docker-cluster
2
2
 
3
+ ## 0.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c8d5f0b`](https://github.com/codedazur/toolkit/commit/c8d5f0b86cb3eb1677d51a4531e8bcc948f8ea4b) Thanks [@thijsdaniels](https://github.com/thijsdaniels)! - All HTTP methods are now allowed by default.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`7d709c8`](https://github.com/codedazur/toolkit/commit/7d709c8be6ea8b0573443e9cc138d7b909412a30)]:
12
+ - @codedazur/cdk-site-distribution@0.4.0
13
+
14
+ ## 0.8.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [`d557d82`](https://github.com/codedazur/toolkit/commit/d557d822ffe8e42b0907f1d4e1a2b243f3430674) Thanks [@thijsdaniels](https://github.com/thijsdaniels)! - The AllViewer origin request policy is now used by default.
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [[`d557d82`](https://github.com/codedazur/toolkit/commit/d557d822ffe8e42b0907f1d4e1a2b243f3430674)]:
23
+ - @codedazur/cdk-site-distribution@0.3.0
24
+
3
25
  ## 0.7.0
4
26
 
5
27
  ### Minor Changes
package/dist/index.js CHANGED
@@ -89,12 +89,19 @@ var DockerCluster = class extends import_constructs.Construct {
89
89
  "CachePolicy",
90
90
  "4cc15a8a-d715-48a4-82b8-cc0b614638fe"
91
91
  );
92
+ const originRequestPolicy = import_aws_cloudfront.OriginRequestPolicy.fromOriginRequestPolicyId(
93
+ this,
94
+ "OriginRequestPolicy",
95
+ "216adef6-5c7f-47e4-b989-5492eafa07d3"
96
+ );
92
97
  return new import_cdk_site_distribution.SiteDistribution(this, "Distribution", {
93
98
  ...this.props.distribution,
94
99
  origin: new import_aws_cloudfront_origins.LoadBalancerV2Origin(this.service.loadBalancer, {
95
100
  protocolPolicy: import_aws_cloudfront.OriginProtocolPolicy.HTTP_ONLY
96
101
  }),
97
- cachePolicy
102
+ allowedMethods: import_aws_cloudfront.AllowedMethods.ALLOW_ALL,
103
+ cachePolicy,
104
+ originRequestPolicy
98
105
  });
99
106
  }
100
107
  getOutputDirectory() {
package/dist/index.mjs CHANGED
@@ -3,7 +3,12 @@ import {
3
3
  SiteDistribution
4
4
  } from "@codedazur/cdk-site-distribution";
5
5
  import { App } from "aws-cdk-lib";
6
- import { CachePolicy, OriginProtocolPolicy } from "aws-cdk-lib/aws-cloudfront";
6
+ import {
7
+ AllowedMethods,
8
+ CachePolicy,
9
+ OriginProtocolPolicy,
10
+ OriginRequestPolicy
11
+ } from "aws-cdk-lib/aws-cloudfront";
7
12
  import { LoadBalancerV2Origin } from "aws-cdk-lib/aws-cloudfront-origins";
8
13
  import { Platform } from "aws-cdk-lib/aws-ecr-assets";
9
14
  import {
@@ -70,12 +75,19 @@ var DockerCluster = class extends Construct {
70
75
  "CachePolicy",
71
76
  "4cc15a8a-d715-48a4-82b8-cc0b614638fe"
72
77
  );
78
+ const originRequestPolicy = OriginRequestPolicy.fromOriginRequestPolicyId(
79
+ this,
80
+ "OriginRequestPolicy",
81
+ "216adef6-5c7f-47e4-b989-5492eafa07d3"
82
+ );
73
83
  return new SiteDistribution(this, "Distribution", {
74
84
  ...this.props.distribution,
75
85
  origin: new LoadBalancerV2Origin(this.service.loadBalancer, {
76
86
  protocolPolicy: OriginProtocolPolicy.HTTP_ONLY
77
87
  }),
78
- cachePolicy
88
+ allowedMethods: AllowedMethods.ALLOW_ALL,
89
+ cachePolicy,
90
+ originRequestPolicy
79
91
  });
80
92
  }
81
93
  getOutputDirectory() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codedazur/cdk-docker-cluster",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "main": ".dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "constructs": ">=10"
28
28
  },
29
29
  "dependencies": {
30
- "@codedazur/cdk-site-distribution": "^0.2.0"
30
+ "@codedazur/cdk-site-distribution": "^0.4.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^20.14.9",