@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/esm/index.js
CHANGED
|
@@ -1299,7 +1299,8 @@ class JaypieLambda extends Construct {
|
|
|
1299
1299
|
// Get base environment with defaults
|
|
1300
1300
|
const environment = jaypieLambdaEnv({ initialEnvironment });
|
|
1301
1301
|
// Resolve secrets from mixed array (strings and JaypieEnvSecret instances)
|
|
1302
|
-
|
|
1302
|
+
// Use Stack.of(this) to ensure secrets are shared at stack level across all constructs
|
|
1303
|
+
const secrets = resolveSecrets(Stack.of(this), secretsInput);
|
|
1303
1304
|
const codeAsset = typeof code === "string" ? lambda.Code.fromAsset(code) : code;
|
|
1304
1305
|
// Create a working copy of layers
|
|
1305
1306
|
const resolvedLayers = [...layers];
|
|
@@ -3208,7 +3209,8 @@ class JaypieNextJs extends Construct {
|
|
|
3208
3209
|
: props?.nextjsPath || path.join(process.cwd(), "..", "nextjs");
|
|
3209
3210
|
const paramsAndSecrets = resolveParamsAndSecrets();
|
|
3210
3211
|
// Resolve secrets from mixed array (strings and JaypieEnvSecret instances)
|
|
3211
|
-
|
|
3212
|
+
// Use Stack.of(this) to ensure secrets are shared at stack level across all constructs
|
|
3213
|
+
const secrets = resolveSecrets(Stack.of(this), props?.secrets);
|
|
3212
3214
|
// Process secrets environment variables
|
|
3213
3215
|
const secretsEnvironment = Object.entries(envSecrets).reduce((acc, [key, secret]) => ({
|
|
3214
3216
|
...acc,
|
|
@@ -3633,6 +3635,7 @@ class JaypieSsoPermissions extends Construct {
|
|
|
3633
3635
|
"cloudformation:*",
|
|
3634
3636
|
"cloudwatch:*",
|
|
3635
3637
|
"cost-optimization-hub:*",
|
|
3638
|
+
"dynamodb:*",
|
|
3636
3639
|
"ec2:*",
|
|
3637
3640
|
"iam:Get*",
|
|
3638
3641
|
"iam:List*",
|