cloudformation : yaml : simple load balancer
We are in the process of rebuilding our instrastructure stack as code from the original configurations that were all hand crafted in the console. The first and easiest was the student web server load balancer. Some variables have been changed to avoid tampering.
Resources:
studentServerELB:
Type: AWS::ElasticLoadBalancing::LoadBalancer
Properties:
AvailabilityZones:
- "us-west-2a"
- "us-west-2b"
- "us-west-2c"
Instances:
- i-myinstance
Listeners:
- LoadBalancerPort: '80'
InstancePort: '80'
Protocol: HTTP
HealthCheck:
Target: HTTP:80/healthy.html
HealthyThreshold: '2'
UnhealthyThreshold: '5'
Interval: '10'
Timeout: '5'
Subnets:
- subnet-1
- subnet-2
- subnet-3
SecurityGroups:
- sg-mysecgroup