@bifravst/aws-cdk-lambda-helpers 1.9.52 → 1.10.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.
@@ -14,7 +14,7 @@ import type { PackedLambda } from './packLambda.js';
|
|
14
14
|
* NODE_NO_WARNINGS: disabled to get rid of Node.js warnings in the logs
|
15
15
|
* STACK_NAME: the current stack name
|
16
16
|
* DISABLE_METRICS: set to '1' of 'isTest'===true in the context
|
17
|
-
* - a LambdaLogGroup
|
17
|
+
* - a LambdaLogGroup (if not provided)
|
18
18
|
* - policies that allow to access all SSM parameters below the current stack name
|
19
19
|
*/
|
20
20
|
export declare class PackedLambdaFn extends Construct {
|
@@ -16,7 +16,7 @@ import { LambdaSource } from './LambdaSource.js';
|
|
16
16
|
* NODE_NO_WARNINGS: disabled to get rid of Node.js warnings in the logs
|
17
17
|
* STACK_NAME: the current stack name
|
18
18
|
* DISABLE_METRICS: set to '1' of 'isTest'===true in the context
|
19
|
-
* - a LambdaLogGroup
|
19
|
+
* - a LambdaLogGroup (if not provided)
|
20
20
|
* - policies that allow to access all SSM parameters below the current stack name
|
21
21
|
*/
|
22
22
|
export class PackedLambdaFn extends Construct {
|
@@ -25,7 +25,8 @@ export class PackedLambdaFn extends Construct {
|
|
25
25
|
constructor(parent, id, source, props) {
|
26
26
|
super(parent, id);
|
27
27
|
const { environment, initialPolicy, ...rest } = props;
|
28
|
-
this.logGroup =
|
28
|
+
this.logGroup =
|
29
|
+
props.logGroup ?? new LambdaLogGroup(this, 'fnLogs').logGroup;
|
29
30
|
this.fn = new Lambda.Function(this, 'fn', {
|
30
31
|
architecture: Lambda.Architecture.ARM_64,
|
31
32
|
runtime: props.runtime ?? Lambda.Runtime.NODEJS_20_X,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@bifravst/aws-cdk-lambda-helpers",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.10.0",
|
4
4
|
"description": "Helper functions which simplify working with TypeScript lambdas for AWS CDK.",
|
5
5
|
"exports": {
|
6
6
|
".": {
|
@@ -51,7 +51,7 @@
|
|
51
51
|
"author": "Nordic Semiconductor ASA | nordicsemi.no",
|
52
52
|
"license": "BSD-3-Clause",
|
53
53
|
"devDependencies": {
|
54
|
-
"@aws-sdk/client-cloudformation": "3.
|
54
|
+
"@aws-sdk/client-cloudformation": "3.651.1",
|
55
55
|
"@bifravst/cloudformation-helpers": "9.1.1",
|
56
56
|
"@bifravst/eslint-config-typescript": "6.1.15",
|
57
57
|
"@bifravst/from-env": "3.0.2",
|
@@ -113,7 +113,7 @@
|
|
113
113
|
"yazl": "2.5.1"
|
114
114
|
},
|
115
115
|
"peerDependencies": {
|
116
|
-
"@bifravst/aws-ssm-settings-helpers": "^1.2.
|
116
|
+
"@bifravst/aws-ssm-settings-helpers": "^1.2.26",
|
117
117
|
"aws-cdk-lib": "^2.158.0",
|
118
118
|
"constructs": "^10.3.0"
|
119
119
|
}
|