Terraform Workshop

Terraform Workshop

Intro to Terraform workshop I gave for the Hacker Garage Community day 2017

A0574e5093df6afd68f1c109c5a9bf22?s=128

Orlando Del Aguila

March 11, 2017
Tweet

Transcript

  1. 12.

    Terraform / Data sources data "aws_ami" "ubuntu" { most_recent =

    true filter { name = "name" values = ["ubuntu/images/hvm-ssd/ubuntu-trusty-*"] } } resource "aws_instance" "example" { ami = "${data.aws_ami.ubuntu.id}" instance_type = "t2.micro" }
  2. 13.
  3. 14.

    Terraform / Variables variable “app_name" { default = “my-super-app-tf“ }

    
 variable "heroku" { default = { email = “orlando@orlandodelaguila.com" api_key = “123123" } } variable "list" { default = [“first”,”second”] }
  4. 16.

    Terraform / Variables data "aws_ami" "ubuntu" { most_recent = true

    filter { name = "name" values = ["ubuntu/images/hvm-ssd/ubuntu-trusty-*"] } } resource "aws_instance" "example" { ami = "${data.aws_ami.ubuntu.id}" instance_type = "t2.micro" }
  5. 21.
  6. 22.

    Terraform / Modules variable "app_name" {} module "app"{ source =

    "./heroku_app" app_name = "${var.app_name}" region = "us" }
  7. 23.
  8. 25.
  9. 26.