Skip to content

Commit 5c197d4

Browse files
committed
fix: improve validation for SSM parameter store tags
1 parent bf71826 commit 5c197d4

File tree

1 file changed

+1
-1
lines changed
  • lambdas/functions/control-plane/src/scale-runners

1 file changed

+1
-1
lines changed

lambdas/functions/control-plane/src/scale-runners/scale-up.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export function validateSsmParameterStoreTags(tagsJson: string): { Key: string;
110110
if (!tag.Key || typeof tag.Key !== 'string' || tag.Key.trim() === '') {
111111
throw new Error(`Tag at index ${index} has missing or invalid 'Key' property`);
112112
}
113-
if (!tag.Value || typeof tag.Value !== 'string' || tag.Value.trim() === '') {
113+
if (!Object.prototype.hasOwnProperty.call(tag, 'Value') || typeof tag.Value !== 'string') {
114114
throw new Error(`Tag at index ${index} has missing or invalid 'Value' property`);
115115
}
116116
});

0 commit comments

Comments
 (0)