Use Amazon CloudFront for dynamic Websites - 2
Please read my previous articleUse Amazon CloudFront for dynamic Websites -1
In this article, I am going to show you how to create a Target Group and an Application Load Balancer.
Let’s get started!
Please visit myGitHub Repository for S3 articles on various topics being updated on constant basis.
3. Create a Target Groupmy-TG
.
1.
2.
3.
4.
5. Under Advanced health check settings
6. Next button.
7. Register Targets:
8. Click Create target group
4. Create an application Load Balancer.
1.
2.
3.
4.
- VPC: Select Default VPC
- Mappings: Select all zones
5. Remove the default security and Select the security group you created while launching an EC2 instance from the drop-down menu.
6. Select the target groupmy-TG
from the drop-down menu.
7. Summary
8. Click Create Load Balancer
9. Copy the DNS name of the ELB under Description section and paste it in your browser.
http://my-lb-823658786.us-east-1.elb.amazonaws.com/
10. refresh the page, and you can observe the ELB is equally splitting the traffic between the two instances. (Note the instance id and time changes each time you refresh the page.)
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse