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

Configuring a website to fail over to an S3 bucket

In a real-time scenario, we will configure an S3 static website, which we will use as a failover if there's an issue with our primary website. To do the failover, we are going to use the Route53 health check.

Our primary website is hosted on EC2 behind an application load balancer:

Figure 11.1 – Primary website using ALB and EC2 instances

Figure 11.1 – Primary website using ALB and EC2 instances

If the primary EC2 instances go down, Route53 will route traffic to an S3 bucket using a failover policy that is hosting our static website:

Figure 11.2 – Route53 failover to S3 in case of EC2 failure

This chapter assumes that you already have a Route53 public hosted zone that is hosting your website. A public hosted zone holds information such as how to route traffic on the internet for a specific domain, for example, amazon.com. For more information about public hosted zones, check out the following link: https://docs.aws...