Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Terraform Everything - Infrastructure As Code

Terraform Everything - Infrastructure As Code

Use Terraform to setup your infrastructure on the cloud or anywhere.

Fd41594dae139b2eedc855143e9714ef?s=128

Andre Marcelo-Tanner

October 28, 2016
Tweet

Transcript

  1. TERRAFORM THE BIG BROTHER OF VAGRANT

  2. OPEN UP WWW.PHACKERS.IO JOIN #DEVOPS Get on Slack! PHACKERS.IO

  3. SPEAKERDECK.COM/KZAP FOLLOW ALONG ONLINE

  4. • github.com/kzap • Examine.com - Director of Technology • Namespace.PH

    - Chief Everything Officer. ABOUT.ME
  5. $15K DELL SERVERS COLOCATION, DEDICATED SERVERS IMAGE SOURCE: HTTP://WWW.SOL.NET/TMP/NANOG/SERVERRACK.JPG

  6. THE MAGIC CLOUD WE RUN ON THE CLOUD IMAGE SOURCE:

    HTTP://WWW.DEFSYS.COM.AU/WP-CONTENT/UPLOADS/2014/11/CLOUD-SERVER.JPG
  7. THE DASHBOARDS THE TOOLS

  8. INFRASTRUCTURE AS CODE GIT COMMIT -M ‘PRODUCTION SERVER’

  9. SIMPLE TO CONFIGURE

  10. ADVANCED USE CASES

  11. ONE TOOL TO RULE THEM ALL IMAGE SOURCE: VIGNETTE1.WIKIA.NOCOOKIE.NET/LOTR/IMAGES/3/3F/ ONE_RING_TO_RULE_THEM_ALL.GIF/REVISION/LATEST

  12. WWW.TERRAFORM.IO TERRAFORM BASIC COMMANDS ▸ terraform plan ▸ terraform apply

    ▸ terraform get ▸ terraform show ▸ terraform destroy ▸ terraform import (NEW in 0.7) ▸ terraform state (NEW in 0.7)
  13. TERRAFORM.IO OVER 45 PROVIDERS SUPPORTED ▸ AWS ▸ BITBUCKET ▸

    CHEF ▸ CLOUDFLARE ▸ CLOUDSTACK ▸ DIGITAL OCEAN ▸ GITHUB ▸ GOOGLE CLOUD ▸ HEROKU ▸ MAILGUN ▸ MICROSOFT AZURE ▸ MYSQL ▸ OPENSTACK ▸ SOFTLAYER ▸ ULTRADNS ▸ VMWARE
  14. GITHUB.COM/KZAP/TF-LAMP GITHUB.COM/KZAP/TF-APACHE GITHUB.COM/KZAP/TF-MYSQL Terraform Modules you can use right away

    TEXT
  15. REUSABLE MODULES MODULE "APP" { SOURCE = "GITHUB.COM/KZAP/TF-LAMP/OPENSTACK" # CUSTOM

    CONFIG PREFIX = "APP" PUBLIC_KEY = "${FILE("~/.SSH/ID_RSA.PUB")}" KEY_FILE_PATH = "~/.SSH/ID_RSA" SERVERS = "1" # OPENSTACK CONFIG USERNAME = "${VAR.USERNAME}" TENANT_NAME = "${VAR.TENANT_NAME}" PASSWORD = "${VAR.PASSWORD}" REGION = "REGIONONE" IMAGE_ID = "C1E8C5B5-BEA6-45E9-8202-B8E769B661A4" FLAVOR_ID = "100" # OPENSTACK DEFAULTS AUTH_URL = "HTTPS://IAD2.DREAM.IO:5000/V2.0" USER_LOGIN = "DHC-USER" PUB_NET_ID = "PUBLIC" }
  16. DEMO TIME DISCLAIMER: 
 NEVER DO A LIVE DEMO GITHUB.COM/KZAP/TF-LAMP

    GITHUB.COM/KZAP/ TF-LAMP
  17. THANK YOU @KZAPKZAP GITHUB.COM/KZAP EXAMINE.COM
 TERRAFORM.IO PHACKERS.IO