Infrastructure as Code: Introduction to Terraform

Preview:

Citation preview

infrastructure as code

Alexander Popov

GPAWSUG meetup 07.27.16

$ intro to terraform

We are hiring like crazy, of course…

What is it?

not this…

Oh, great… So, it’s like Chef, Puppet, Ansible, Vagrant, CloudFormation, Heat, etc.?

Why not just use CloudFormation or Heat?

also

vs.

install

define

https://github.com/hashicorp/hcl

define - JSON

plan

apply

relish

discard

discard

destroy

magic

ta da

state?

before and after

modules

terraform get

• chef (runs chef client)

• connection (connects via ssh/winrm)

• file (copies files)

• local-exec (invokes local exe)

• eemote-exec (invokes remote exe)

• null_resource

provisioners

local-exec

• modules

• provisioners

• state management & remotes

• resource graphs

• parallelism

“advanced” topics

References• https://www.terraform.io/intro/

• https://github.com/hashicorp/terraform

• https://github.com/hashicorp/hcl

• https://github.com/terraform-community-modules

Questions?

Recommended