AWS Classroomnotes 02/Apr/2022

Understanding Load Balancers

  • Activity:
    • Create the following vpc with two ubuntu ec2 instances
      Preview
    • ensure 80 port is open to all, icmp is open, 22 port
    • Login into ec2 instance and install lamp stack
    • Execute the following steps
      “`bash

    ubuntu

    sudo apt update
    sudo apt install apache2 -y
    sudo apt install php libapache2-mod-php php-mysql -y

    create a file at /var/www/html/info.php with content

    <?php
    phpinfo();
    ?>
    ``
    * Now access
    http:///info.php`
    * Steps:
    Preview
    Preview
    Preview
    * Now install the lamp following the above mentioned steps
    Preview
    Preview
    Preview
    Preview

  • Now lets understand OSI Model for networking
    Preview
  • understand layer 4 and layer 7 LB
    Preview
  • Layer 4 LB
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
  • Now lets Navigate using http://<lb-dns>/info.php
    Preview
  • When we try to access enterprize applications our urls will definetly not be http://ntierqt4-19ba2b1e1b642aa7.elb.ap-south-1.amazonaws.com/info.php rather they would be http://<domainname>/info.php
  • Lets create a DNS record for the already purchased domain awsbykhaja.online, so we would be using Route 53
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
  • Note: Ensure Aws CLI is installed on your system Refer Here

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner