DEV Community

Cover image for AWS Auto scaling without Load Balancer
Kannan
Kannan

Posted on

AWS Auto scaling without Load Balancer

  • 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.

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay