@gradientedge/cdk-utils 8.5.0 → 8.6.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.
@@ -35,6 +35,7 @@ export declare class CommonStack extends cdk.Stack {
35
35
  subDomain: any;
36
36
  extraContexts: any;
37
37
  skipStageForARecords: any;
38
+ logRetention: any;
38
39
  };
39
40
  /**
40
41
  * @summary Method to determine extra cdk contexts apart from the main cdk.json
@@ -73,6 +73,7 @@ class CommonStack extends cdk.Stack {
73
73
  subDomain: this.node.tryGetContext('subDomain'),
74
74
  extraContexts: this.node.tryGetContext('extraContexts'),
75
75
  skipStageForARecords: this.node.tryGetContext('skipStageForARecords'),
76
+ logRetention: this.node.tryGetContext('logRetention'),
76
77
  };
77
78
  }
78
79
  /**
@@ -115,6 +115,7 @@ class LambdaManager {
115
115
  ? lambda.FileSystem.fromEfsAccessPoint(accessPoint, mountPath || '/mnt/msg')
116
116
  : undefined,
117
117
  layers: layers,
118
+ logRetention: scope.props.logRetention ?? props.logRetention,
118
119
  reservedConcurrentExecutions: props.reservedConcurrentExecutions,
119
120
  role: role instanceof iam.Role ? role : undefined,
120
121
  securityGroups: securityGroups,
@@ -52,6 +52,7 @@ export interface CommonStackProps extends cdk.StackProps {
52
52
  extraContexts?: string[];
53
53
  stageContextPath?: string;
54
54
  skipStageForARecords: boolean;
55
+ logRetention?: logs.RetentionDays;
55
56
  }
56
57
  /**
57
58
  * @category cdk-utils.site-with-ecs-backend
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "8.5.0",
3
+ "version": "8.6.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -56,6 +56,7 @@ export class CommonStack extends cdk.Stack {
56
56
  subDomain: this.node.tryGetContext('subDomain'),
57
57
  extraContexts: this.node.tryGetContext('extraContexts'),
58
58
  skipStageForARecords: this.node.tryGetContext('skipStageForARecords'),
59
+ logRetention: this.node.tryGetContext('logRetention'),
59
60
  }
60
61
  }
61
62
 
@@ -118,6 +118,7 @@ export class LambdaManager {
118
118
  ? lambda.FileSystem.fromEfsAccessPoint(accessPoint, mountPath || '/mnt/msg')
119
119
  : undefined,
120
120
  layers: layers,
121
+ logRetention: scope.props.logRetention ?? props.logRetention,
121
122
  reservedConcurrentExecutions: props.reservedConcurrentExecutions,
122
123
  role: role instanceof iam.Role ? role : undefined,
123
124
  securityGroups: securityGroups,
@@ -54,6 +54,7 @@ export interface CommonStackProps extends cdk.StackProps {
54
54
  extraContexts?: string[]
55
55
  stageContextPath?: string
56
56
  skipStageForARecords: boolean
57
+ logRetention?: logs.RetentionDays
57
58
  }
58
59
 
59
60
  /**