@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/esm/index.js
CHANGED
|
@@ -929,6 +929,13 @@ class JaypieEnvSecret extends Construct {
|
|
|
929
929
|
else {
|
|
930
930
|
exportName = cleanName$1(exportParam);
|
|
931
931
|
}
|
|
932
|
+
if (!consumer &&
|
|
933
|
+
envKey &&
|
|
934
|
+
!process.env[envKey] &&
|
|
935
|
+
value === undefined &&
|
|
936
|
+
!generateSecretString) {
|
|
937
|
+
throw new ConfigurationError(`JaypieEnvSecret(${id}): envKey "${envKey}" is empty in process.env and no value or generateSecretString was provided`);
|
|
938
|
+
}
|
|
932
939
|
if (consumer) {
|
|
933
940
|
const secretName = Fn.importValue(exportName);
|
|
934
941
|
this._secret = secretsmanager.Secret.fromSecretNameV2(this, id, secretName);
|