@codedazur/cdk-docker-cluster 0.9.0 → 0.9.2
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 +13 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @codedazur/cdk-docker-cluster
|
|
2
2
|
|
|
3
|
+
## 0.9.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`ddef1e0`](https://github.com/codedazur/toolkit/commit/ddef1e023538d35ecf637a30e654f10ebb06d8d2)]:
|
|
8
|
+
- @codedazur/cdk-site-distribution@0.5.0
|
|
9
|
+
|
|
10
|
+
## 0.9.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`afec6fd`](https://github.com/codedazur/toolkit/commit/afec6fdb40cfbbb4dc118c2fa6caacf1345f7875) Thanks [@thijsdaniels](https://github.com/thijsdaniels)! - The distribution props are no longer overridden.
|
|
15
|
+
|
|
3
16
|
## 0.9.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -29,6 +29,8 @@ interface SourceProps {
|
|
|
29
29
|
/**
|
|
30
30
|
* An Docker cluster on a load balanced Fargate service on EC2, using an image
|
|
31
31
|
* built from a Dockerfile in a directory and pushed to ECR.
|
|
32
|
+
* @todo Make the distribution and laod balancer optional, to reduce cost and
|
|
33
|
+
* increase deployment speed for development environments.
|
|
32
34
|
*/
|
|
33
35
|
declare class DockerCluster extends Construct {
|
|
34
36
|
protected readonly props: DockerClusterProps;
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,8 @@ interface SourceProps {
|
|
|
29
29
|
/**
|
|
30
30
|
* An Docker cluster on a load balanced Fargate service on EC2, using an image
|
|
31
31
|
* built from a Dockerfile in a directory and pushed to ECR.
|
|
32
|
+
* @todo Make the distribution and laod balancer optional, to reduce cost and
|
|
33
|
+
* increase deployment speed for development environments.
|
|
32
34
|
*/
|
|
33
35
|
declare class DockerCluster extends Construct {
|
|
34
36
|
protected readonly props: DockerClusterProps;
|
package/dist/index.js
CHANGED
|
@@ -95,13 +95,13 @@ var DockerCluster = class extends import_constructs.Construct {
|
|
|
95
95
|
"216adef6-5c7f-47e4-b989-5492eafa07d3"
|
|
96
96
|
);
|
|
97
97
|
return new import_cdk_site_distribution.SiteDistribution(this, "Distribution", {
|
|
98
|
+
allowedMethods: import_aws_cloudfront.AllowedMethods.ALLOW_ALL,
|
|
99
|
+
cachePolicy,
|
|
100
|
+
originRequestPolicy,
|
|
98
101
|
...this.props.distribution,
|
|
99
102
|
origin: new import_aws_cloudfront_origins.LoadBalancerV2Origin(this.service.loadBalancer, {
|
|
100
103
|
protocolPolicy: import_aws_cloudfront.OriginProtocolPolicy.HTTP_ONLY
|
|
101
|
-
})
|
|
102
|
-
allowedMethods: import_aws_cloudfront.AllowedMethods.ALLOW_ALL,
|
|
103
|
-
cachePolicy,
|
|
104
|
-
originRequestPolicy
|
|
104
|
+
})
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
getOutputDirectory() {
|
package/dist/index.mjs
CHANGED
|
@@ -81,13 +81,13 @@ var DockerCluster = class extends Construct {
|
|
|
81
81
|
"216adef6-5c7f-47e4-b989-5492eafa07d3"
|
|
82
82
|
);
|
|
83
83
|
return new SiteDistribution(this, "Distribution", {
|
|
84
|
+
allowedMethods: AllowedMethods.ALLOW_ALL,
|
|
85
|
+
cachePolicy,
|
|
86
|
+
originRequestPolicy,
|
|
84
87
|
...this.props.distribution,
|
|
85
88
|
origin: new LoadBalancerV2Origin(this.service.loadBalancer, {
|
|
86
89
|
protocolPolicy: OriginProtocolPolicy.HTTP_ONLY
|
|
87
|
-
})
|
|
88
|
-
allowedMethods: AllowedMethods.ALLOW_ALL,
|
|
89
|
-
cachePolicy,
|
|
90
|
-
originRequestPolicy
|
|
90
|
+
})
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
getOutputDirectory() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codedazur/cdk-docker-cluster",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"main": ".dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"scripts": {
|
|
18
18
|
"develop": "tsup src/index.ts --format esm,cjs --dts --watch",
|
|
19
19
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
20
|
-
"audit": "npm audit --omit dev",
|
|
20
|
+
"audit": "npm audit --omit dev --audit-level high",
|
|
21
21
|
"lint": "TIMING=1 eslint \"**/*.ts*\"",
|
|
22
22
|
"types": "tsc --noEmit",
|
|
23
23
|
"test": "vitest run --passWithNoTests"
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"constructs": ">=10"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@codedazur/cdk-site-distribution": "^0.
|
|
30
|
+
"@codedazur/cdk-site-distribution": "^0.5.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^20.14.
|
|
34
|
-
"aws-cdk-lib": "^2.
|
|
33
|
+
"@types/node": "^20.14.10",
|
|
34
|
+
"aws-cdk-lib": "^2.149.0",
|
|
35
35
|
"constructs": "^10.3.0",
|
|
36
|
-
"esbuild": "^0.
|
|
36
|
+
"esbuild": "^0.23.0"
|
|
37
37
|
}
|
|
38
38
|
}
|