Automating AWS with Ansible
-
Upload
christopher-cundill -
Category
Engineering
-
view
142 -
download
0
Transcript of Automating AWS with Ansible
![Page 1: Automating AWS with Ansible](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/1.jpg)
AUTOMAT ING
AWS WITH ANS IBLE
C H R I S C U N D I L L
![Page 2: Automating AWS with Ansible](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/2.jpg)
CONTENTS• AWS Overview• Ansible Overview• DevOps 101• Ansible Automation at DVLA• Demo: VED Calc Service
![Page 3: Automating AWS with Ansible](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/3.jpg)
IDENTITY CRISIS
![Page 4: Automating AWS with Ansible](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/4.jpg)
IDENTITY CRISIS
![Page 5: Automating AWS with Ansible](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/5.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/6.jpg)
AWS
OVER
VIEW
![Page 7: Automating AWS with Ansible](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/7.jpg)
AWS OVERVIEW
![Page 8: Automating AWS with Ansible](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/8.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/9.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/10.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/11.jpg)
DEVOPS 101
![Page 12: Automating AWS with Ansible](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/12.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/13.jpg)
DEVOPS 101
![Page 14: Automating AWS with Ansible](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/14.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/15.jpg)
ANSIBLE AUTOMATION• Platform, Project, Roles approach
– consolidated and standardised technology– secure– scalable– maintainability– flexibility
![Page 16: Automating AWS with Ansible](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/16.jpg)
DEMO: VED CALC SERVICE• New service for Vehicle Excise Duty Calculation (April
2017)– Java– Dropwizard & Drools
![Page 17: Automating AWS with Ansible](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/17.jpg)
DEMO: VED CALC SERVICE
![Page 18: Automating AWS with Ansible](https://reader035.fdocuments.us/reader035/viewer/2022062412/5885f0131a28ab864f8b5ac3/html5/thumbnails/18.jpg)
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