Create Auto Scaling Group

Create Auto Scaling Group

In this section, we will implement an Auto Scaling Group for the FCJ Management application to ensure our application will be deployed with high availability and potentially increase the number of EC2 instances when users visit, into the boost system.

  1. Access to EC2

    • Select Auto Scaling Groups
    • Select Create Auto Scaling group

Auto Scaling Group

  1. Auto Scaling Group name, enter FCJ-Management-ASG

Auto Scaling Group

  1. Configure the template

    • Launch template, select FCJ-Management-template
    • Select Next

Auto Scaling Group

  1. Configure Network

    • VPC, select created.
    • Select AZ and subnet

Auto Scaling Group

  1. Select Next

Auto Scaling Group

  1. Configure Load balancing

    • Select Attach to an existing load balancer
    • Select Choose from your load balancer target groups
    • Select FCJ-Management-TG

Auto Scaling Group

  1. Select Next

Auto Scaling Group

  1. Configure group size and scaling policy.

    • Desired capacity: Enter 1. (Default)
    • Minimum capacity: Enter 1. (Default)
    • Maximum capacity: Enter 3.

Auto Scaling Group

  1. Under Scaling policies - optional: Select this exercise to make it easier for the next step to be checked. You can completely set the resource scaling policy according to your needs.

    • Select Target tracking scaling policy
    • Scaling policy name, enter Target Tracking Policy
    • Metric type, select Application Load Balancer request count per target.
    • Target group, enter FCJ-Management
    • Target value, enter 30

Auto Scaling Group

  1. Select Next

Auto Scaling Group

  1. Select Create a topic.

Auto Scaling Group

  1. Configure Add notifications. Select Next

Auto Scaling Group

  • Check email and Confirm subscription

Auto Scaling Group

Auto Scaling Group

  1. Select Create Auto Scaling group

Auto Scaling Group

Auto Scaling Group

Auto Scaling Group

  1. Complete creation Auto Scaling groups

Auto Scaling Group

  1. The initialization of the Auto Scaling Group will be done, the newly created Auto Scaling Group will be displayed in the list, and you can select it to view detailed information.

    • We can track existing EC2 instances in the Auto Scaling Group on the Instance management page. Instances with InService status are ready-to-go instances.

Auto Scaling Group

Auto Scaling Group

Auto Scaling Group