View on GitHub

Just trying to document how we move from 1 live server to a load balanced horizontally scaled architecture.


IAM - security Route 53 - DNS Key pairs - belong to an IAM user and are SSH keys. .pem Cloudfront - serves assets

Elastic beanstalk - for deploying and scaling

CodeDeploy - automates deployment

EC2 instance - virtual server (Elastic Compute Cloud)

EBS - Block Storage

S3 - File Storage


Just for spinning up VMs

Security on Virtual Private Cloud

Can also connect to on premise using hardware

Elastic Beanstalk

Deploys, Manages and Scales.

Automatically scales.

You can tweak after.

Cloud Formation

To create and manage AWS resources.

Provisions based on a template (JSON file).

Defines what resources are required to run the application.

Or pre-built stack.

Upload temmplate.

Load Balancing

Code Deploy

Coordinates deployment and updates across a fleet.

Dev machine has AppSpec file (application specific). Deploys to a Deployment Group.

Blue/green deployment

Just creating a parallel environment before switching.

CodeDeploy with Auto Scaling

“When new Amazon EC2 instances are launched as part of an Auto Scaling group, AWS CodeDeploy can deploy your revisions to the new instances automatically”

Deep Dive

Dev Ops

Looking a this one:

Tutorial Linux

Video 1

Create EC2 instance

Video 2

Stop instance. Auto scaling group.

Deploying code to an auto scaling group. Launch Configuration - bash script here could do a git pull?

Where do we start?

Code Deploy

Cloud Formation

Application Templates

Maybe just do this

Tutorial: Set Up a Scaled and Load-Balanced Application

The Plan

Don’t touch the current box.

1, Create a new box. 2, Use this to make an AMI. 3, Use this to setup a load balanced auto-scaling group.

Box build

To Do

Sessions Logs - central AWS thing? Code Deploy

Architect Cert?

AWS Technical Essentials

AWS Certified Solutions Architect - Associate Udemy - Ryan

Ryan Kroonenburg

Google Play app Sorry forgot to tell you guys what it was:

Immutable - Mutable

set -e in Bash Scripts

How to handle database migrations

The biggest

What can I do on Free Tier?—-and-how-to-make-the-most-of-them.html

Big questions

How to pull the code How to run database migrations - nothing to migrate?