AWS Application Load Balancer
1. Launch 2 EC2 instances in default VPC and default subnets - Use different subnets in different AZs for these 2 EC2 instances - Use userdata to configure Ec2 instances as web servers. (See notes below the slide) - Allow HTTP (80) port from VPC CIDR only 2. Create EC2 Target group and add these 2 EC2 instances into target group - Configure target as port 80 and health check at /index.html 3. Create Application Load balancer - Use 2 public subnets as configured for EC2 instances - Configure listener at port 80 - Configure Security Group and allow port 80 4. Attach to Target group created above 5. Wait for instances to be Healthy in given target group 6. Get the Load Balancer DNS and try to access over internet web. Userdata: #!/bin/bash yum install httpd -y service httpd start chkconfig httpd on wget http://chetan-demo.s3-us-west-2.amazonaws.com/awstrainingcenter.com.zip unzip awstrainingcenter.com.zip cp -r awstrainingcenter.com/* -d /var/www/html/ If you like my videos, please check out my content here for more hands-on exercises: https://www.awswithchetan.com/courses/AWS-VPC-and-Networking Happy learning ! ~Chetan Email: [email protected]
Download
0 formatsNo download links available.