Skip to content

Commit 1e4a0c6

Browse files
committed
Support longer resource IDs in CFN template
Closes aws#430
1 parent ae467ea commit 1e4a0c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ecs-cli/modules/clients/aws/cloudformation/template.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ var template = `
155155
"Type": "String",
156156
"Description": "Optional - VPC Id of existing VPC. Leave blank to have a new VPC created",
157157
"Default": "",
158-
"AllowedPattern": "^(?:vpc-[0-9a-f]{8}|)$",
159-
"ConstraintDescription": "VPC Id must begin with 'vpc-' or leave blank to have a new VPC created"
158+
"AllowedPattern": "^(?:vpc-[0-9a-f]{8}|vpc-[0-9a-f]{17}|)$",
159+
"ConstraintDescription": "VPC Id must begin with 'vpc-' followed by either an 8 or 17 character identifier, or leave blank to have a new VPC created"
160160
},
161161
"SubnetIds": {
162162
"Type": "CommaDelimitedList",

0 commit comments

Comments
 (0)