deployments so easy, devs will ask for it by name

43
Deployments So Easy, Developers Will Ask For It by Name ] Brittany Martin Wednesday, Dec 7th

Upload: brittany-martin

Post on 08-Jan-2017

44 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Deployments So Easy, Devs Will Ask For It by Name

Deployments So Easy, Developers Will Ask For It by Name

]

Brittany MartinWednesday, Dec 7th

Page 2: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 2

Page 3: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 3

IT’SMYBIRTHDAY!

Page 4: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 4

Hail from Pittsburgh, PA, USA

Technology7/10

Food8/10

People10/10

Pittsburgh’s Ratings:

Page 5: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 5

DEVOPSIS ABSOLUTELYAWESOME

HOWI GOT MYSTART

Page 6: Deployments So Easy, Devs Will Ask For It by Name

PITTSBURGH CULTURAL TRUST

I AMTHELEAD RUBY DEVELOPER @ THE

Brittany Martin @BrittJMartin

Based in Pittsburgh, PA

Page 7: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 7

Page 8: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 8

My Team

Patrick FitzGeraldDirector of E-Commerce

Brittany MartinLead Ruby Developer

Danielle GreavesFrontend Developer

Justin SnairDirector of Cloud &

Network Infrastructure

Page 9: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 9

Multi-Tenant Ticketing Application

Pittsburgh Symphony

Pittsburgh Arts & Lectures

Pittsburgh Ballet

Pittsburgh Opera

Pittsburgh CLO

City Theatre

Public Theater

Pittsburgh Ballet

PGH CULTURAL DISTRICT

Pittsburgh Cultural Trust

Page 10: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 10

High-Volume Ruby on Rails Application

Page 11: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 11

AWS CodeDeploy Omniture

Github

AWS EC2

TravisCI

AWS Elasticache

CodeClimateAWS CloudFront

All of the Services

Page 12: Deployments So Easy, Devs Will Ask For It by Name

AWSCodeDeploy DEPLOYMENT

Page 13: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 13

Why Use a Deployment Service?

ManageComplexity

AutomateDeployments

Avoid Downtime

Page 14: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 14

AWS Deployment Offerings

More Control

Less Control

AWS CloudFormation

AWS CodeDeploy

AWS Elastic Beanstalk

Page 15: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 15

AWS Code Deploy

Choose the Application Revision

Scale from 1 Instance to Thousands

Watch the Deployment in Real Time

Page 16: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 16

Queue Your Code

Page 17: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 17

Setup AWS CodeDeploy

Install Slack Notification

Setup AWS CD Group

Design An AppSpec

Gather Installation Steps

Page 18: Deployments So Easy, Devs Will Ask For It by Name

18

appspec.yml

Page 19: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 19

3

Agent

2

Agent

1

Agent

Setup Target Environments

5

Agent

3

Agent

2

Agent

1

Agent

4

Agent

Group byAutoscaling

Groups

Deployment Group

Deployment Group

Page 20: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 20

All-at-Once

Half-at-a-Time

One-at-a-Time

Choose Your Speed

Page 21: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 21

V2

Load Balancer

V1

Rolling Deployment In Progress

V1

Page 22: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 22

V2

Load Balancer

V1

Rolling Deployment Next

V2

Page 23: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 23

Fire Ze Missiles!

Commit

Success

DeployReal Time Loggingvia Cloudwatch

Push Notification to Slackvia AWS SNS

Setup Deployment

Page 24: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 24

Page 25: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 25

Inside a CodeDeploy Deployment

Start

ApplicationStop

Download Bundle

BeforeInstall

Install

AfterInstall

Application Start

ValidateService

Shipped!

Page 26: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 26

Page 27: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 27

Load Balancer

Automatic Deployment Failure Rollback

V2V2V3

HEALTH CHECK FAILURE

Page 28: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 28

Load Balancer

Automatic Deployment Failure Rollback

V2V2

ROLLBACK INITIATED

V2

Page 29: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 29

How Much Will AWS Code Deploy Cost Me?

Page 30: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 30

Page 31: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 31

https://github.com/aws/aws-codedeploy-agent

OpenSource

Page 32: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 32

Page 33: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 33

Blue/Green Deployments in Beta

Page 34: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 34

New AWS Partner Feature: AWS CodeBuild

us-east-1, us-west-2, and eu-west-1

Page 35: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 35

Page 36: Deployments So Easy, Devs Will Ask For It by Name

Deppbot DEPENDENCYMANAGEMENT

Page 37: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 37

and proud.

Page 38: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 38

Page 39: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 39

Oh, the Webs We Weave

Page 40: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 40

Deppbot In Action

3

5

2

14

Deppbot Reviews for Updateson Schedule

PR from Deppbot

Review Security & Update NotesCI Server RunsCodeClimate Reviews

Deploy

Merge

Page 41: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 41

HumbleBrag

Page 42: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 42

Focus on Building, Not Deploying

Page 43: Deployments So Easy, Devs Will Ask For It by Name

Brittany Martin @BrittJMartin 43

THANK YOU!PLEASE SAYHELLO. CONFOO ROCKS.

[email protected]@BrittJMartin