Skip to content

Commit 4ed9bb4

Browse files
committed
tweak validation regex for InstanceType param
the 1-4 values must be comma separated with no whitespace. Previously the validation accepted "m4.large, m5.large", now it does not.
1 parent 49f6ef9 commit 4ed9bb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/aws-stack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Parameters:
208208
Type: String
209209
Default: t3.large
210210
MinLength: 1
211-
AllowedPattern: "^[^,]+(,[^,]*){0,3}$"
211+
AllowedPattern: "^[\\w\\.]+(,[\\w\\.]*){0,3}$"
212212
ConstraintDescription: "must contain 1-4 instance types separated by commas. No space before/after the comma."
213213

214214
MaxSize:

0 commit comments

Comments
 (0)