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

Setting up the application load balancer

Before setting up the application load balancer, we need to consider a few points:

  • First, we need to decide on two AZs that we will use for our EC2 instance. Generally, we use a public subnet in each AZ and for this example, we are going to use us-west-2a (subnet 10.0.1.0/24) and us-west-2b (subnet 10.0.2.0/24). The reason we are using two subnets is to provide high availability, and we already discussed this in Chapter 3, Creating a Data Center in the Cloud Using VPC.
  • Now we have decided that we will use two instances. In the next step, we need to install a web server (for example, Apache) on each instance. We already saw, in Chapter 4, Scalable Compute Capacity in the Cloud via EC2, as a part of EC2 instance installation, how to use user data to install a web server. To install the second server in different AZs, we will use a Terraform script that will take care of the following step, install Apache RPM, start the Apache service...