Automation in an Infrastructure as Code world

With IaaS on Azure or AWS

Jon Spriggs, FDE – jon.sprig.gs

Reading along at home? Press “S” to also see my notes!
"Engine" by "Paul Swansen" on Flickr
Image is “Engine” by “Paul Swansen” and is released under a CC-BY-ND license

Introduction

  • Who (is the speaker)?
  • Why (talk about this)?
  • What (is this about)?

Why Automate?

Topics

  • Terminology
  • Cloud Formation
  • ARM templates
  • Ansible
  • Terraform
  • Combinations

Terminology?

"Library" by "Stephanie Overton" on Flickr
Image is “Library” by “Stephanie Overton” and is released under a CC-BY-ND license

Terminology

Infrastructure as Code

"Scaffold" by "Alan Myers" on Flickr
Image is “Scaffold” by “Alan Myers” and is released under a CC-BY license

Terminology

Infrastructure as Code

“code crunching” by “Ruben Molina” on Flickr
Image is “code crunching” by “Ruben Molina” and is released under a CC-BY-ND license

Terminology

Infrastructure as Code

"IMG_1361 copy" by "adogcalledstray" on Flickr
Image is “IMG_1361 copy” by “adogcalledstray” and is released under a CC-BY license

A moment to talk about methodology

Stepped

"Checklist" by "Xavier Vergés" on Flickr
Image is “Checklist” by “Xavier Vergés” and is released under a CC-BY license

Computed

"Blueprints" by "Cameron Degelia" on Flickr
Image is “Blueprints” by “Cameron Degelia” and is released under a CC-BY license

Let’s Talk Tooling

Ready Lets Go GIF by Leroy Patterson GIF from Giphy
Ready Lets Go via GIPHY
AWS CloudFormation Icon

Cloud Formation

Documentation
Reference Guide
My Code Samples

A screen grab of the AWS Documentation taken 2019-09-25
Microsoft Resource Group Icon

Azure Resource Manager (ARM) Templates

Documentation
My Code Samples

A screen grab of the Azure Documentation taken 2019-09-25

Ansible

Ansible Logo (reversed colours)
Documentation
My Code Samples:
AWS | Azure

A screen grab of the Ansible Documentation taken 2019-09-25

Terraform

Terraform Logo
Documentation
My Code Samples:
AWS | Azure

A screen grab of the Terraform Documentation taken 2019-09-25

Combinations?

Combinations!

X triggers Y
My code samples:

AWS Azure
Ansible → CF Ansible → ARM
TF → CF TF → ARM
Ansible → TF → AWS API Ansible → TF → Azure API
 
Ansible from user/custom data
Examples:

AWS CF AWS TF AWS Ansible
Azure ARM Azure TF Azure Ansible
"Zwei Grand Gattai" by "finalfusion" on Flickr
Image is “Zwei Grand Gattai” by “finalfusion” and is released under a CC-BY license

Take Away

Azure Resource Manager
❤️
Ansible
❤️
Terraform
❤️
Cloud Formation

There’s no right or wrong answer. Each tool has it’s place; it’s strengths and weaknesses.

Jon Spriggs, @JonTheNiceGuy | https://jon.sprig.gs

Your Next Steps?

"baby walking" by "Philippe Put" on Flickr
Image is “baby walking” by “Philippe Put” and is released under a CC-BY license

Code Samples

All available from: ⇒
https://github.com/JonTheNiceGuy
/cautious-octo-palm-tree

QR Link to https://github.com/JonTheNiceGuy/cautious-octo-palm-tree

Jon Spriggs, FDE

Picture of Jon wearing a Red Hat

Any questions?

Code Samples

All available from: ⇒
https://github.com/JonTheNiceGuy
/cautious-octo-palm-tree


nobodys perfect nbc GIF by The Good Place from Giphy
nobodys perfect nbc GIF by The Good Place via GIPHY

QR Link to https://github.com/JonTheNiceGuy/cautious-octo-palm-tree