4 A Scalable, Load Balanced Website

 

This chapter covers:

  • Setting up VPCs, Subnets, Security Groups, Network Access Control Lists (NACLs) and Internet Gateways using CloudFormation
  • Defining route tables so Internet traffic can reach your website but won’t be able to access instances within a private subnet
  • Defining and deploying Autoscaling Groups, Policies and CloudWatch Alarms
  • Specifying parameters for Load Balancer policies, settings and security

4.1       Introduction

In chapter 3, we used CloudFormation to build out a static, HTML5 website. In this chapter, we’re going to take this a step further, and introduce elements that will make our website scale to handle a virtually unlimited volume of traffic. We’ll build on the concepts we learned in chapter 3 to implement new infrastructure for our website that incorporates numerous important building block features of AWS deployed via CloudFormation.

4.2       VPCs

4.2.1   Subnets

4.2.2   Instances

4.2.3   Security Groups and Network Access Control Lists (NACLs)

4.2.4   Route Tables

4.2.5   Internet Gateway

4.2.6   Elastic IP Address (EIP)

4.3       Overview of the Website Template

4.3.1   Auto Scaling Groups (ASGs)

4.3.2   CreationPolicy, UpdatePolicy and TerminationPolicy

4.3.3   Health Checks

4.3.4   Scaling Policy

4.3.5   SNS Notification

4.3.6   CloudWatch Alarms

4.3.7   Load Balancing

4.3.8   Application Load Balancer (ALB)

4.3.9   Network Load Balancer (NLB)

4.3.10    Classic Elastic Load Balancer (Classic ELB)

4.3.11    Testing the Web Site

4.4       Summary

sitemap