@codedazur/cdk-docker-cluster 0.6.3 → 0.7.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,23 @@
1
1
  # @codedazur/cdk-docker-cluster
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`4f8716c`](https://github.com/codedazur/toolkit/commit/4f8716c534265493e708ede8239bd47d38ff83a4) Thanks [@thijsdaniels](https://github.com/thijsdaniels)! - The cache policy now defaults to the recommended policy for an Application Load Balancer origin.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`4f8716c`](https://github.com/codedazur/toolkit/commit/4f8716c534265493e708ede8239bd47d38ff83a4), [`4f8716c`](https://github.com/codedazur/toolkit/commit/4f8716c534265493e708ede8239bd47d38ff83a4)]:
12
+ - @codedazur/cdk-site-distribution@0.2.0
13
+
14
+ ## 0.6.4
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [[`fdbd655`](https://github.com/codedazur/toolkit/commit/fdbd65536edc88074817e9256f99f30a5e1c3680)]:
19
+ - @codedazur/cdk-site-distribution@0.1.6
20
+
3
21
  ## 0.6.3
4
22
 
5
23
  ### Patch Changes
package/dist/index.js CHANGED
@@ -84,11 +84,17 @@ var DockerCluster = class extends import_constructs.Construct {
84
84
  return service;
85
85
  }
86
86
  createDistribution() {
87
+ const cachePolicy = import_aws_cloudfront.CachePolicy.fromCachePolicyId(
88
+ this,
89
+ "CachePolicy",
90
+ "4cc15a8a-d715-48a4-82b8-cc0b614638fe"
91
+ );
87
92
  return new import_cdk_site_distribution.SiteDistribution(this, "Distribution", {
88
93
  ...this.props.distribution,
89
94
  origin: new import_aws_cloudfront_origins.LoadBalancerV2Origin(this.service.loadBalancer, {
90
95
  protocolPolicy: import_aws_cloudfront.OriginProtocolPolicy.HTTP_ONLY
91
- })
96
+ }),
97
+ cachePolicy
92
98
  });
93
99
  }
94
100
  getOutputDirectory() {
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  SiteDistribution
4
4
  } from "@codedazur/cdk-site-distribution";
5
5
  import { App } from "aws-cdk-lib";
6
- import { OriginProtocolPolicy } from "aws-cdk-lib/aws-cloudfront";
6
+ import { CachePolicy, OriginProtocolPolicy } from "aws-cdk-lib/aws-cloudfront";
7
7
  import { LoadBalancerV2Origin } from "aws-cdk-lib/aws-cloudfront-origins";
8
8
  import { Platform } from "aws-cdk-lib/aws-ecr-assets";
9
9
  import {
@@ -65,11 +65,17 @@ var DockerCluster = class extends Construct {
65
65
  return service;
66
66
  }
67
67
  createDistribution() {
68
+ const cachePolicy = CachePolicy.fromCachePolicyId(
69
+ this,
70
+ "CachePolicy",
71
+ "4cc15a8a-d715-48a4-82b8-cc0b614638fe"
72
+ );
68
73
  return new SiteDistribution(this, "Distribution", {
69
74
  ...this.props.distribution,
70
75
  origin: new LoadBalancerV2Origin(this.service.loadBalancer, {
71
76
  protocolPolicy: OriginProtocolPolicy.HTTP_ONLY
72
- })
77
+ }),
78
+ cachePolicy
73
79
  });
74
80
  }
75
81
  getOutputDirectory() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codedazur/cdk-docker-cluster",
3
- "version": "0.6.3",
3
+ "version": "0.7.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.1.5"
30
+ "@codedazur/cdk-site-distribution": "^0.2.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^20.14.9",