Skip to content

Commit 6d5caea

Browse files
committed
Update vpc template params
1 parent 49d14b3 commit 6d5caea

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

cloudformation/vpc_stack.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,17 @@
5252
"Description" : "VPC subnet2 AvailabilityZone",
5353
"Type" : "String",
5454
"Default" : "eu-west-1b"
55+
},
56+
57+
"AdminIP" : {
58+
"Description" : "The IP address range that can be used to SSH to the EC2 instances",
59+
"Type": "String",
60+
"MinLength": "9",
61+
"MaxLength": "18",
62+
"Default": "0.0.0.0/0",
63+
"AllowedPattern": "(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})/(\\d{1,2})",
64+
"ConstraintDescription": "must be a valid IP CIDR range of the form x.x.x.x/x."
5565
}
56-
5766
},
5867

5968
"Mappings" : {
@@ -240,7 +249,7 @@
240249
"CidrIp" : "0.0.0.0/0"
241250
}],
242251
"Tags" : [
243-
{ "Key" : "Application", "Value" : { "Ref" : "AWS::StackName" } }
252+
{ "Key" : "Application", "Value" : { "Ref" : "AdminIP" } }
244253
]
245254
}
246255
},

0 commit comments

Comments
 (0)