@codedazur/cdk-docker-cluster 0.7.0 → 0.8.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 +11 -0
- package/dist/index.js +7 -1
- package/dist/index.mjs +12 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @codedazur/cdk-docker-cluster
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`d557d82`](https://github.com/codedazur/toolkit/commit/d557d822ffe8e42b0907f1d4e1a2b243f3430674) Thanks [@thijsdaniels](https://github.com/thijsdaniels)! - The AllViewer origin request policy is now used by default.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`d557d82`](https://github.com/codedazur/toolkit/commit/d557d822ffe8e42b0907f1d4e1a2b243f3430674)]:
|
|
12
|
+
- @codedazur/cdk-site-distribution@0.3.0
|
|
13
|
+
|
|
3
14
|
## 0.7.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -89,12 +89,18 @@ 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
|
+
cachePolicy,
|
|
103
|
+
originRequestPolicy
|
|
98
104
|
});
|
|
99
105
|
}
|
|
100
106
|
getOutputDirectory() {
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,11 @@ import {
|
|
|
3
3
|
SiteDistribution
|
|
4
4
|
} from "@codedazur/cdk-site-distribution";
|
|
5
5
|
import { App } from "aws-cdk-lib";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
CachePolicy,
|
|
8
|
+
OriginProtocolPolicy,
|
|
9
|
+
OriginRequestPolicy
|
|
10
|
+
} from "aws-cdk-lib/aws-cloudfront";
|
|
7
11
|
import { LoadBalancerV2Origin } from "aws-cdk-lib/aws-cloudfront-origins";
|
|
8
12
|
import { Platform } from "aws-cdk-lib/aws-ecr-assets";
|
|
9
13
|
import {
|
|
@@ -70,12 +74,18 @@ var DockerCluster = class extends Construct {
|
|
|
70
74
|
"CachePolicy",
|
|
71
75
|
"4cc15a8a-d715-48a4-82b8-cc0b614638fe"
|
|
72
76
|
);
|
|
77
|
+
const originRequestPolicy = OriginRequestPolicy.fromOriginRequestPolicyId(
|
|
78
|
+
this,
|
|
79
|
+
"OriginRequestPolicy",
|
|
80
|
+
"216adef6-5c7f-47e4-b989-5492eafa07d3"
|
|
81
|
+
);
|
|
73
82
|
return new SiteDistribution(this, "Distribution", {
|
|
74
83
|
...this.props.distribution,
|
|
75
84
|
origin: new LoadBalancerV2Origin(this.service.loadBalancer, {
|
|
76
85
|
protocolPolicy: OriginProtocolPolicy.HTTP_ONLY
|
|
77
86
|
}),
|
|
78
|
-
cachePolicy
|
|
87
|
+
cachePolicy,
|
|
88
|
+
originRequestPolicy
|
|
79
89
|
});
|
|
80
90
|
}
|
|
81
91
|
getOutputDirectory() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codedazur/cdk-docker-cluster",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.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.
|
|
30
|
+
"@codedazur/cdk-site-distribution": "^0.3.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^20.14.9",
|