@jaypie/constructs 1.2.21 → 1.2.23
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/cjs/__tests__/issue-158-shared-secrets.spec.d.ts +1 -0
- package/dist/cjs/index.cjs +5 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/__tests__/issue-158-shared-secrets.spec.d.ts +1 -0
- package/dist/esm/index.js +5 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1333,7 +1333,8 @@ class JaypieLambda extends constructs.Construct {
|
|
|
1333
1333
|
// Get base environment with defaults
|
|
1334
1334
|
const environment = jaypieLambdaEnv({ initialEnvironment });
|
|
1335
1335
|
// Resolve secrets from mixed array (strings and JaypieEnvSecret instances)
|
|
1336
|
-
|
|
1336
|
+
// Use Stack.of(this) to ensure secrets are shared at stack level across all constructs
|
|
1337
|
+
const secrets = resolveSecrets(cdk.Stack.of(this), secretsInput);
|
|
1337
1338
|
const codeAsset = typeof code === "string" ? lambda__namespace.Code.fromAsset(code) : code;
|
|
1338
1339
|
// Create a working copy of layers
|
|
1339
1340
|
const resolvedLayers = [...layers];
|
|
@@ -3242,7 +3243,8 @@ class JaypieNextJs extends constructs.Construct {
|
|
|
3242
3243
|
: props?.nextjsPath || path__namespace.join(process.cwd(), "..", "nextjs");
|
|
3243
3244
|
const paramsAndSecrets = resolveParamsAndSecrets();
|
|
3244
3245
|
// Resolve secrets from mixed array (strings and JaypieEnvSecret instances)
|
|
3245
|
-
|
|
3246
|
+
// Use Stack.of(this) to ensure secrets are shared at stack level across all constructs
|
|
3247
|
+
const secrets = resolveSecrets(cdk.Stack.of(this), props?.secrets);
|
|
3246
3248
|
// Process secrets environment variables
|
|
3247
3249
|
const secretsEnvironment = Object.entries(envSecrets).reduce((acc, [key, secret]) => ({
|
|
3248
3250
|
...acc,
|
|
@@ -3667,6 +3669,7 @@ class JaypieSsoPermissions extends constructs.Construct {
|
|
|
3667
3669
|
"cloudformation:*",
|
|
3668
3670
|
"cloudwatch:*",
|
|
3669
3671
|
"cost-optimization-hub:*",
|
|
3672
|
+
"dynamodb:*",
|
|
3670
3673
|
"ec2:*",
|
|
3671
3674
|
"iam:Get*",
|
|
3672
3675
|
"iam:List*",
|