Skip to content

Instantly share code, notes, and snippets.

@succi0303
Created March 25, 2020 08:52
Show Gist options
  • Save succi0303/df59e5b48356a130bbe58e333be46c7a to your computer and use it in GitHub Desktop.
Save succi0303/df59e5b48356a130bbe58e333be46c7a to your computer and use it in GitHub Desktop.
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