❌

Normal view

There are new articles available, click to refresh the page.
Before yesterdayMain stream

AWS Auto scaling without Load Balancer

By: Kannan
27 November 2023 at 18:15
  • Create a instance with Ubuntu OS and with instance type as t2.nano and selected the existing key pair and security group and set 2 instance to create and launch.

  • Run the apdt update and install apache webserver and modify the index.html
    sudo apt update
    sudo apt install apache2 -y
    sudo rm /var/www/html/index.html
    sudo vim /var/www/html/index.html
    <h1>Testing for Auto Scaling Group</h1>

  • Go to Action >Image and Template > Create Image

Image description

  • set as noboot and create image

Image description

Image description

  • Once image created Stop and Terminate the instance which we created

Image description

  • Instance >Launch template >Create the launch template>Select AMI image.

Image description

Image description

Image description

  • Instance type s t2.nano>select keypair >Existing security group> Advance Network Configuration >Enable "Auto Assign IP"

Image description

Image description

Image description

  • Create Auto scaling Group >Select the template >Select all network availability zone >Select No Load balancing.

Image description

Image description

Image description

  • Group size >Desired capacity as 1 >No scaling policies

Image description

  • Select instance maintance policy as "Launch before Terminating"

Image description

  • Add Notification >Create a topic and provide name of the topic and email ID to send notification > Unselect "Fail to launch & Terminate"

Image description

  • Add Tag

Image description

  • Once done Review all the settings and create a auto scaling group

Image description

Image description

  • Verify the email and confirm the notification subscription

Image description

Image description

  • Auto Scaling group has been create and launch the Instance from the AMI Image Template. you can monitor on the Activity tab.

Image description

  • Verfiy the instance status

Image description.

Image description

  • If you stop the instance ASG-1 it will create the new instance using Auto scaling group monitor the process on the ASG Activity. Image description

Image description

Image description

  • These how auto scaling group works without load balancer.
❌
❌