@jaypie/constructs 1.2.45 → 1.2.46
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/index.cjs +7 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -965,6 +965,13 @@ class JaypieEnvSecret extends constructs.Construct {
|
|
|
965
965
|
else {
|
|
966
966
|
exportName = cleanName$1(exportParam);
|
|
967
967
|
}
|
|
968
|
+
if (!consumer &&
|
|
969
|
+
envKey &&
|
|
970
|
+
!process.env[envKey] &&
|
|
971
|
+
value === undefined &&
|
|
972
|
+
!generateSecretString) {
|
|
973
|
+
throw new errors.ConfigurationError(`JaypieEnvSecret(${id}): envKey "${envKey}" is empty in process.env and no value or generateSecretString was provided`);
|
|
974
|
+
}
|
|
968
975
|
if (consumer) {
|
|
969
976
|
const secretName = cdk.Fn.importValue(exportName);
|
|
970
977
|
this._secret = secretsmanager__namespace.Secret.fromSecretNameV2(this, id, secretName);
|