@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.
@@ -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
- const secrets = resolveSecrets(scope, secretsInput);
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
- const secrets = resolveSecrets(scope, props?.secrets);
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*",