@gradientedge/cdk-utils 8.38.0 → 8.39.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.
@@ -239,6 +239,8 @@ class SiteWithEcsBackend extends common_1.CommonConstruct {
239
239
  logDriver: ecs.LogDriver.awsLogs({
240
240
  logGroup: this.siteEcsLogGroup,
241
241
  streamPrefix: `${this.id}-${this.props.stage}/ecs`,
242
+ multilinePattern: this.props.siteTask.logging?.multilinePattern,
243
+ logRetention: this.props.siteTask.logging?.logRetention,
242
244
  }),
243
245
  image: this.siteEcsContainerImage,
244
246
  executionRole: this.siteEcsRole,
@@ -164,6 +164,8 @@ class EcsManager {
164
164
  ecs.LogDriver.awsLogs({
165
165
  logGroup: logGroup,
166
166
  streamPrefix: `${id}-${scope.props.stage}/ecs`,
167
+ multilinePattern: props.logging?.multilinePattern,
168
+ logRetention: props.logging?.logRetention,
167
169
  }),
168
170
  image: props.taskImageOptions.image,
169
171
  executionRole: props.taskImageOptions?.executionRole,
@@ -73,7 +73,7 @@ export interface SiteWithEcsBackendProps extends CommonStackProps {
73
73
  siteLogBucket: S3BucketProps;
74
74
  siteRecordName?: string;
75
75
  siteSubDomain: string;
76
- siteTask: ecsPatterns.ApplicationLoadBalancedFargateServiceProps;
76
+ siteTask: EcsApplicationLoadBalancedFargateServiceProps;
77
77
  siteVpc: ec2.VpcProps;
78
78
  useExistingHostedZone: boolean;
79
79
  nodeEnv: string;
@@ -608,6 +608,7 @@ export interface EcsTaskProps extends ecs.TaskDefinitionProps {
608
608
  */
609
609
  export interface EcsApplicationLoadBalancedFargateServiceProps extends ecsPatterns.ApplicationLoadBalancedFargateServiceProps {
610
610
  healthCheck?: HealthCheck;
611
+ logging?: ecs.AwsLogDriverProps;
611
612
  }
612
613
  /**
613
614
  * @category cdk-utils.eks-manager
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "8.38.0",
3
+ "version": "8.39.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -261,6 +261,8 @@ export class SiteWithEcsBackend extends CommonConstruct {
261
261
  logDriver: ecs.LogDriver.awsLogs({
262
262
  logGroup: this.siteEcsLogGroup,
263
263
  streamPrefix: `${this.id}-${this.props.stage}/ecs`,
264
+ multilinePattern: this.props.siteTask.logging?.multilinePattern,
265
+ logRetention: this.props.siteTask.logging?.logRetention,
264
266
  }),
265
267
  image: this.siteEcsContainerImage,
266
268
  executionRole: this.siteEcsRole,
@@ -168,6 +168,8 @@ export class EcsManager {
168
168
  ecs.LogDriver.awsLogs({
169
169
  logGroup: logGroup,
170
170
  streamPrefix: `${id}-${scope.props.stage}/ecs`,
171
+ multilinePattern: props.logging?.multilinePattern,
172
+ logRetention: props.logging?.logRetention,
171
173
  }),
172
174
  image: props.taskImageOptions.image,
173
175
  executionRole: props.taskImageOptions?.executionRole,
@@ -76,7 +76,7 @@ export interface SiteWithEcsBackendProps extends CommonStackProps {
76
76
  siteLogBucket: S3BucketProps
77
77
  siteRecordName?: string
78
78
  siteSubDomain: string
79
- siteTask: ecsPatterns.ApplicationLoadBalancedFargateServiceProps
79
+ siteTask: EcsApplicationLoadBalancedFargateServiceProps
80
80
  siteVpc: ec2.VpcProps
81
81
  useExistingHostedZone: boolean
82
82
  nodeEnv: string
@@ -646,6 +646,7 @@ export interface EcsTaskProps extends ecs.TaskDefinitionProps {
646
646
  export interface EcsApplicationLoadBalancedFargateServiceProps
647
647
  extends ecsPatterns.ApplicationLoadBalancedFargateServiceProps {
648
648
  healthCheck?: HealthCheck
649
+ logging?: ecs.AwsLogDriverProps
649
650
  }
650
651
 
651
652
  /**