Created
March 25, 2020 08:52
-
-
Save succi0303/d1e4c73dcb88efea4a32c30a5ce9e1d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Resources": { | |
"ElasticLoadBalancer": { | |
"Type": "AWS::ElasticLoadBalancing::LoadBalancer", | |
"Properties": { | |
"AvailabilityZones": { | |
"Fn::GetAZs": "" | |
}, | |
"Instances": [ | |
{ | |
"Ref": "Ec2Instance1" | |
}, | |
{ | |
"Ref": "Ec2Instance2" | |
} | |
], | |
"Listeners": [ | |
{ | |
"LoadBalancerPort": "80", | |
"InstancePort": { | |
"Ref": "WebServerPort" | |
}, | |
"Protocol": "HTTP" | |
} | |
], | |
"HealthCheck": { | |
"Target": { | |
"Fn::Join": [ | |
"", | |
[ | |
"HTTP:", | |
{ | |
"Ref": "WebServerPort" | |
}, | |
"/" | |
] | |
] | |
}, | |
"HealthyThreshold": "3", | |
"UnhealthyThreshold": "5", | |
"Interval": "30", | |
"Timeout": "5" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment