We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8b8146 commit 1e1dbedCopy full SHA for 1e1dbed
1 file changed
tests/smoke/fixtures/cfn-outputs.ts
@@ -87,8 +87,10 @@ interface FetchOptions {
87
// in Output values (only in resource properties), so the smoke test sees the literal
88
// placeholder. Detect that pattern and fetch the secret at test time.
89
// Format: {{resolve:secretsmanager:<secretArn>:SecretString:<jsonKey>::}}
90
+// The ARN itself contains 7 colon-separated parts, so use a lazy match anchored
91
+// on `:SecretString:` to extract the ARN cleanly.
92
const SECRETS_RESOLVE_PATTERN =
- /^\{\{resolve:secretsmanager:([^:]+:[^:]+:[^:]+:[^:]+:[^:]+:[^:]+):SecretString:([^:]+)::\}\}$/;
93
+ /^\{\{resolve:secretsmanager:(.+?):SecretString:([^:]+)::\}\}$/;
94
95
async function resolveSecretsPlaceholder(
96
value: string,
0 commit comments