@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.
- package/dist/src/lambda.js +2 -1
- package/package.json +1 -1
package/dist/src/lambda.js
CHANGED
|
@@ -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
|
-
|
|
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