@certenza/aws-cdk-infrastructure-commons 2.5.0 → 2.5.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.
@@ -61,7 +61,8 @@ const createLambdaFunction = (scope, functionName, environment, props = {}) => {
61
61
  // Define the options of the lambda function
62
62
  const options = props.options ?? {};
63
63
  // Get the internal api token from secrets manager
64
- const internalApiToken = (0, secretsmanager_1.getSecret)(scope, `Internal-API-Token`, "Internal-API-Token");
64
+ // Use function name in the construct ID to ensure uniqueness when multiple functions are created
65
+ const internalApiToken = (0, secretsmanager_1.getSecret)(scope, `${id}-Internal-API-Token`, "Internal-API-Token");
65
66
  const internalApiTokenValue = internalApiToken
66
67
  .secretValueFromJson("token")
67
68
  .toString();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@certenza/aws-cdk-infrastructure-commons",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Common infrastructure reusable utilities and resources for Certenza projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",