automating aws with ansible

18
AUTOMATING AWS WITH ANSIBLE CHRIS CUNDILL

Upload: christopher-cundill

Post on 23-Jan-2017

148 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: Automating AWS with Ansible

AUTOMAT ING

AWS WITH ANS IBLE

C H R I S C U N D I L L

Page 2: Automating AWS with Ansible

CONTENTS• AWS Overview• Ansible Overview• DevOps 101• Ansible Automation at DVLA• Demo: VED Calc Service

Page 3: Automating AWS with Ansible

IDENTITY CRISIS

Page 4: Automating AWS with Ansible

IDENTITY CRISIS

Page 5: Automating AWS with Ansible

AWS OVERVIEW• AWS are a true cloud provider, arguably the defacto cloud• Commodity cloud provider• Private clouds• Scalable!

–“Every day, Amazon adds enough new server capacity to support all of Amazon’s global infrastructure when it was a $7 billion annual revenue enterprise,” James Hamilton, Distinguished Engineer at Amazon, who described the AWS infrastructure at the Re:Invent conference last fall. “There’s a lot of scale. That volume allows us to reinvest deeply into the platform and keep innovating.”

Page 6: Automating AWS with Ansible

AWS

OVER

VIEW

Page 7: Automating AWS with Ansible

AWS OVERVIEW

Page 8: Automating AWS with Ansible

ANSIBLE OVERVIEW

• Ansible is a radically simple IT automation engine that automates

– cloud provisioning– configuration management– application deployment– intra-service orchestration– and many other IT needs…

Page 9: Automating AWS with Ansible

ANSIBLE OVERVIEW

• No agents• No additional custom security infrastructure, so it's

easy to deploy very simple language (YAML, in the form of Ansible Playbooks) • Describe your automation jobs in a way that

approaches plain English• Python over SSH

Page 10: Automating AWS with Ansible

DEVOPS 101• Fusion of development and operations• Name coined from the devopsdays conference started

in 2009 in Belgium• Jez Humble:

– ”a cross-disciplinary community of practice dedicated to the study of building, evolving and operating rapidly-changing resilient systems at scale.”

Page 11: Automating AWS with Ansible

DEVOPS 101

Page 12: Automating AWS with Ansible

DEVOPS 101• Culture shift

– increased collaboration between the roles of development and operations

–attitude of shared responsibility– valuable organizational shift is to support autonomous

teams

Page 13: Automating AWS with Ansible

DEVOPS 101

Page 14: Automating AWS with Ansible

ANSIBLE AUTOMATIONPlatfor

m

• Manages fixed VPCs, common network services and platform services

• Core CIS team responsible

Projects

• Manages project-specific network services

• Manages project-specific apps

Roles

• Re-usable Anisble tasks, e.g.

• ec2-build-launch• ec2-buld-ami• ec2-asg• iptables

Page 15: Automating AWS with Ansible

ANSIBLE AUTOMATION• Platform, Project, Roles approach

– consolidated and standardised technology– secure– scalable– maintainability– flexibility

Page 16: Automating AWS with Ansible

DEMO: VED CALC SERVICE• New service for Vehicle Excise Duty Calculation (April

2017)– Java– Dropwizard & Drools

Page 17: Automating AWS with Ansible

DEMO: VED CALC SERVICE

Page 18: Automating AWS with Ansible

DEMO: VED CALC SERVICE• Ansible provisioning, configuration & deployment

Init Subnets Security Groups

Launch AMI Box

Configure AMI Box Capture AMI Terminate AMI

Box

Create ELB

Create Launch Config

Update Auto-

Scaling Group