Skip to content

Commit

Permalink
merge pull request #878
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Jul 19, 2016
2 parents 3469614 + c0f65ba commit bf61664
Show file tree
Hide file tree
Showing 14 changed files with 2,029 additions and 62 deletions.
96 changes: 91 additions & 5 deletions api/models/fixtures/balancer_labels.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
{
"AWSTemplateFormatVersion": "2010-09-09",
"Conditions": {
"BalancerMainBlankHealthPath": {
"Fn::Equals": [
{
"Ref": "MainHealthPath"
},
""
]
},
"BalancerMainBlankHealthTimeout": {
"Fn::Equals": [
{
"Ref": "MainHealthTimeout"
},
""
]
},
"BalancerMainPort443Proxy": {
"Fn::Equals": [
{
Expand Down Expand Up @@ -186,6 +202,16 @@
"Description": "Number of processes to run, CPU units to reserve, and MB of RAM to reserve",
"Type": "CommaDelimitedList"
},
"MainHealthPath": {
"Default": "",
"Description": "Path used when health check protocol is http(s)",
"Type": "String"
},
"MainHealthTimeout": {
"Default": "3",
"MaxValue": 60,
"Type": "Number"
},
"MainPort443Balancer": {
"Default": "443",
"Description": "",
Expand Down Expand Up @@ -297,19 +323,79 @@
"CrossZone": true,
"HealthCheck": {
"HealthyThreshold": "2",
"Interval": 5,
"Interval": "5",
"Target": {
"Fn::Join": [
":",
"",
[
"TCP",
{
"Ref": "MainPort443Host"
"Fn::Join": [
":",
[
{
"Fn::If": [
"BalancerMainBlankHealthPath",
{
"Fn::If": [
"BalancerMainPort443Secure",
{
"Fn::FindInMap": [
"PortProtocol",
"tcp",
"SecureInstanceProtocol"
]
},
{
"Fn::FindInMap": [
"PortProtocol",
"tcp",
"InstanceProtocol"
]
}
]
},
{
"Fn::If": [
"BalancerMainPort443Secure",
{
"Fn::FindInMap": [
"PortProtocol",
"http",
"SecureInstanceProtocol"
]
},
{
"Fn::FindInMap": [
"PortProtocol",
"http",
"InstanceProtocol"
]
}
]
}
]
},
{
"Ref": "MainPort443Host"
}
]
]
},
{
"Ref": "MainHealthPath"
}
]
]
},
"Timeout": 3,
"Timeout": {
"Fn::If": [
"BalancerMainBlankHealthTimeout",
"3",
{
"Ref": "MainHealthTimeout"
}
]
},
"UnhealthyThreshold": "2"
},
"LBCookieStickinessPolicy": [
Expand Down
Loading

0 comments on commit bf61664

Please sign in to comment.