Book Image

AWS for System Administrators

By : Prashant Lakhera
Book Image

AWS for System Administrators

By: Prashant Lakhera

Overview of this book

Amazon Web Services (AWS) is one of the most popular and efficient cloud platforms for administering and deploying your applications to make them resilient and robust. AWS for System Administrators will help you to learn several advanced cloud administration concepts for deploying, managing, and operating highly available systems on AWS. Starting with the fundamentals of identity and access management (IAM) for securing your environment, this book will gradually take you through AWS networking and monitoring tools. As you make your way through the chapters, you’ll get to grips with VPC, EC2, load balancer, Auto Scaling, RDS database, and data management. The book will also show you how to initiate AWS automated backups and store and keep track of log files. Later, you’ll work with AWS APIs and understand how to use them along with CloudFormation, Python Boto3 Script, and Terraform to automate infrastructure. By the end of this AWS book, you’ll be ready to build your two-tier startup with all the necessary infrastructure, monitoring, and logging components in place.
Table of Contents (18 chapters)
1
Section 1: AWS Services and Tools
4
Section 2: Building the Infrastructure
7
Section 3: Adding Scalability and Elasticity to the Infrastructure
11
Section 4: The Monitoring, Metrics, and Backup Layers

Scaling an application based on demand

In this section, we are going to see some real-time dynamic scaling. In this example, you will see how to dynamically scale by modifying an existing scaling group. These are the steps you need to follow:

  1. Go back to the Auto Scaling console and click on an existing auto-scaling group (for example, prod-asg):
    Figure 6.19 – Auto Scaling groups

    Figure 6.19 – Auto Scaling groups

  2. Click on Automatic scaling and then Add policy:
    Figure 6.20 – Add policy

    Figure 6.20 – Add policy

  3. In the next step, we need to create a scaling policy that will add an additional instance based on demand. Fill in the following details:

    - Policy type: From the dropdown, select Step scaling.

    - Scaling policy name: Give a meaningful name to your policy (for example, asg-scale-in).

    - CloudWatch alarm: We are going to come back to this shortly.

    - Take the action: From the dropdown, select Add and in the box, choose 1 (this is going to add one instance based on the CloudWatch trigger):

    Figure 6.21 – Create scaling policy

    Figure 6.21 – Create scaling...