Created
March 25, 2020 08:52
-
-
Save succi0303/df59e5b48356a130bbe58e333be46c7a 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: !GetAZs '' | |
Instances: | |
- !Ref Ec2Instance1 | |
- !Ref Ec2Instance2 | |
Listeners: | |
- LoadBalancerPort: '80' | |
InstancePort: !Ref WebServerPort | |
Protocol: HTTP | |
HealthCheck: | |
Target: !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