Commit b6a68a0e by Feanil Patel

Add a third subnet for mongo in a third AZ since there will be at minimum 3 instances.

parent 92eb9de2
......@@ -9,8 +9,7 @@
},
"DeploymentTag":{
"Type":"String",
"Description":"A tag value applied to the hosts in the VPC indicating which deployment this is, e.g., edx, edge, <university>, <org>",
"Default":"edx"
"Description":"A tag value applied to the hosts in the VPC indicating which deployment this is, e.g., edx, edge, <university>, <org>"
},
"KeyName":{
"Type":"String",
......@@ -383,7 +382,8 @@
"Forum01": { "CIDR":"10.0.80.0/24" },
"Forum02": { "CIDR":"10.0.81.0/24" },
"Mongo01": { "CIDR":"10.0.90.0/24" },
"Mongo02": { "CIDR":"10.0.91.0/24" }
"Mongo02": { "CIDR":"10.0.91.0/24" },
"Mongo03": { "CIDR":"10.0.92.0/24" }
},
"MapRegionsToAvailZones":{
"us-east-1": { "AZone2":"us-east-1a", "AZone0":"us-east-1b", "AZone1":"us-east-1c" },
......@@ -1026,6 +1026,38 @@
]
}
},
"MongoSubnet03":{
"Type":"AWS::EC2::Subnet",
"Properties":{
"VpcId":{
"Ref":"EdxVPC"
},
"CidrBlock":{
"Fn::FindInMap":[
"SubnetConfig",
"Mongo03",
"CIDR"
]
},
"AvailabilityZone":{
"Fn::FindInMap":[
"MapRegionsToAvailZones",
{ "Ref":"AWS::Region" },
"AZone2"
]
},
"Tags":[
{
"Key":"Application",
"Value":"mongo"
},
{
"Key":"Network",
"Value":"Private"
}
]
}
},
"InternetGateway":{
"Type":"AWS::EC2::InternetGateway",
"Properties":{
......@@ -1535,6 +1567,17 @@
}
}
},
"PrivateSubnetRouteTableAssociationMongo03":{
"Type":"AWS::EC2::SubnetRouteTableAssociation",
"Properties":{
"SubnetId":{
"Ref":"MongoSubnet03"
},
"RouteTableId":{
"Ref":"PrivateRouteTable"
}
}
},
"PrivateNetworkAcl":{
"Type":"AWS::EC2::NetworkAcl",
"Properties":{
......@@ -1787,6 +1830,17 @@
}
}
},
"PrivateSubnetNetworkAclAssociationMongo03":{
"Type":"AWS::EC2::SubnetNetworkAclAssociation",
"Properties":{
"SubnetId":{
"Ref":"MongoSubnet03"
},
"NetworkAclId":{
"Ref":"PrivateNetworkAcl"
}
}
},
"NATIPAddress":{
"Type":"AWS::EC2::EIP",
"Properties":{
......@@ -4659,6 +4713,12 @@
"MongoSubnet02",
"AvailabilityZone"
]
},
{
"Fn::GetAtt":[
"MongoSubnet03",
"AvailabilityZone"
]
}
],
"VPCZoneIdentifier":[
......@@ -4667,6 +4727,9 @@
},
{
"Ref":"MongoSubnet02"
},
{
"Ref":"MongoSubnet03"
}
],
"Tags":[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment