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

Infrastructure As Code

Infrastructure As Code

DevCon Summit 2016

Fd41594dae139b2eedc855143e9714ef?s=128

Andre Marcelo-Tanner

November 05, 2016
Tweet

Transcript

  1. TERRAFORM INFRASTRUCTURE AS CODE

  2. OPEN UP WWW.PHACKERS.IO #AMA, #PHP, #RUBY, #PYTHON, #JAVASCRIPT, #ANDROID Get

    on Slack! PHACKERS.IO
  3. • github.com/kzap • Examine.com - Director of Technology • Namespace.PH

    - Chief Everything Officer. ABOUT.ME
  4. SPEAKERDECK.COM/KZAP FOLLOW ALONG ONLINE

  5. VAGRANT UP WE RUN ON THE CLOUD

  6. $15K DELL SERVERS COLOCATION, DEDICATED SERVERS IMAGE SOURCE: HTTP://WWW.SOL.NET/TMP/NANOG/SERVERRACK.JPG

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

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

  9. THE DASHBOARDS THE TOOLS

  10. THE DASHBOARDS THE TOOLS

  11. THE DASHBOARDS THE TOOLS

  12. THE DASHBOARDS THE TOOLS

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

  14. SIMPLE TO CONFIGURE

  15. ADVANCED USE CASES

  16. 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

  17. 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)
  18. 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
  19. 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" }
  20. GITHUB.COM/KZAP/ TERRAFORM-MODULES/ EXAMPLES Terraform Modules you can use right away

    TEXT
  21. DEMO TIME DISCLAIMER: 
 NEVER DO A LIVE DEMO GITHUB.COM/KZAP/TERRAFORM-MODULES

    GITHUB.COM/KZAP/ TERRAFORM-MODULES
  22. THANK YOU @KZAPKZAP GITHUB.COM/KZAP EXAMINE.COM
 TERRAFORM.IO PHACKERS.IO