AWS Service: ALB(Application Load Balancer):
ALB(Application Load Balancer): – Practical steps: Create 6 instances - 2 instance (main website) - 2 instance (image) - 2 instance (video) Create ALB Create target groups Add the target group to Listeners – Comment to run the script(built the website): #!/bin/bash sudo yum -y install httpd sudo echo "This is E-commerce-main server" > /var/www/html/index.html sudo systemctl restart httpd sudo systemctl enable httpd –Script to create sub folder for website: #!/bin/bash sudo yum -y install httpd sudo mkdir /var/www/html/videos sudo echo "This is Video server" > /var/www/html/videos/index.html sudo systemctl restart httpd sudo systemctl enable httpd – Example: – Ec2 creating: – EC2 web Launch: – Main web: – Subfolder: – Adding all instances in Load Balancer (Single website): – Creating LB: – Creating TG: – Adding Subfolder in Target Group: – TG group added in Listener: – LB check: – Creating Hyperlink in Load Balancer for Website