@codedazur/cdk-docker-cluster 2.1.0 → 2.1.1

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,11 @@
1
1
  # @codedazur/cdk-docker-cluster
2
2
 
3
+ ## 2.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`788c34a`](https://github.com/codedazur/toolkit/commit/788c34a5c321fcc1d6ebf831365111f4d8fb5573) Thanks [@thijsdaniels](https://github.com/thijsdaniels)! - Promote `containerInsights` prop to top level.
8
+
3
9
  ## 2.1.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -16,8 +16,16 @@ interface ClusterConfig {
16
16
  }
17
17
  interface DockerClusterProps {
18
18
  readonly source: string | SourceProps | ContainerImage;
19
+ /**
20
+ * Enable CloudWatch Container Insights for the ECS Cluster.
21
+ * @default false
22
+ */
23
+ readonly containerInsights?: boolean;
19
24
  readonly service?: ServiceProps;
20
25
  readonly distribution?: Omit<SiteDistributionProps, "origin">;
26
+ /**
27
+ * @deprecated Use top-level `containerInsights` instead.
28
+ */
21
29
  readonly cluster?: ClusterConfig;
22
30
  }
23
31
  interface ServiceProps {
package/dist/index.js CHANGED
@@ -47,9 +47,10 @@ var DockerCluster = class extends Construct {
47
47
  }
48
48
  createService() {
49
49
  const desiredTasks = typeof this.props.service?.tasks === "number" ? this.props.service?.tasks : this.props.service?.tasks?.minimum;
50
+ const containerInsights = this.props.containerInsights ?? this.props.cluster?.containerInsights;
50
51
  const service = new ApplicationLoadBalancedFargateService(this, "Service", {
51
52
  cluster: new Cluster(this, "Cluster", {
52
- containerInsights: this.props.cluster?.containerInsights
53
+ containerInsights
53
54
  }),
54
55
  cpu: this.props.service?.cpu,
55
56
  memoryLimitMiB: this.props.service?.memory,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codedazur/cdk-docker-cluster",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "constructs": ">=10"
24
24
  },
25
25
  "dependencies": {
26
- "@codedazur/cdk-site-distribution": "~2.0.0"
26
+ "@codedazur/cdk-site-distribution": "2.0.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^25.9.1",