@bifravst/aws-cdk-lambda-helpers 3.1.58 → 3.2.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.
@@ -1,5 +1,5 @@
1
1
  import { Permissions as SettingsPermissions } from '@bifravst/aws-ssm-settings-helpers/cdk';
2
- import { Duration, aws_lambda as Lambda, Stack } from 'aws-cdk-lib';
2
+ import { Duration, aws_lambda as Lambda, Stack, Tags } from 'aws-cdk-lib';
3
3
  import { Construct } from 'constructs';
4
4
  import { LambdaLogGroup } from './LambdaLogGroup.js';
5
5
  import { LambdaSource } from './LambdaSource.js';
@@ -35,8 +35,6 @@ import { LambdaSource } from './LambdaSource.js';
35
35
  NODE_NO_WARNINGS: '1',
36
36
  STACK_NAME: Stack.of(this).stackName,
37
37
  DISABLE_METRICS: this.node.tryGetContext('isTest') === true ? '1' : '0',
38
- PACKED_LAMBDA_ID: source.id,
39
- PACKED_LAMBDA_HASH: source.hash,
40
38
  ...environment
41
39
  },
42
40
  initialPolicy: [
@@ -48,7 +46,7 @@ import { LambdaSource } from './LambdaSource.js';
48
46
  handler: source.handler,
49
47
  code: new LambdaSource(this, source).code
50
48
  });
51
- this.fn.node.addMetadata('packedLambda:id', source.id);
52
- this.fn.node.addMetadata('packedLambda:hash', source.hash);
49
+ Tags.of(this.fn).add('packedLambda:id', source.id);
50
+ Tags.of(this.fn).add('packedLambda:hash', source.hash);
53
51
  }
54
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifravst/aws-cdk-lambda-helpers",
3
- "version": "3.1.58",
3
+ "version": "3.2.0",
4
4
  "description": "Helper functions which simplify working with TypeScript lambdas for AWS CDK.",
5
5
  "exports": {
6
6
  ".": {