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…
Infrastructure as Code: Introduction to Terraform
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?

More Related Content

PDF
Infrastructure as Code with Terraform
PDF
Terraform Introduction
PPTX
"Continuously delivering infrastructure using Terraform and Packer" training ...
PDF
Terraform 0.9 + good practices
PDF
Declarative & workflow based infrastructure with Terraform
PPTX
Terraform Modules and Continuous Deployment
PDF
Using Terraform.io (Human Talks Montpellier, Epitech, 2014/09/09)
PDF
Terraform in deployment pipeline
Infrastructure as Code with Terraform
Terraform Introduction
"Continuously delivering infrastructure using Terraform and Packer" training ...
Terraform 0.9 + good practices
Declarative & workflow based infrastructure with Terraform
Terraform Modules and Continuous Deployment
Using Terraform.io (Human Talks Montpellier, Epitech, 2014/09/09)
Terraform in deployment pipeline

What's hot (20)

PDF
Refactoring terraform
PPTX
Terraform at Scale
PDF
Developing Terraform Modules at Scale - HashiTalks 2021
PDF
Terraform: Cloud Configuration Management (WTC/IPC'16)
PDF
Introductory Overview to Managing AWS with Terraform
PDF
Terraform: Configuration Management for Cloud Services
PDF
Intro to Terraform
PPTX
Final terraform
PDF
Building infrastructure with Terraform (Google)
PDF
Terraform at Scale - All Day DevOps 2017
PDF
Terraform modules and best-practices - September 2018
PPTX
An intro to Docker, Terraform, and Amazon ECS
PPTX
Reusable, composable, battle-tested Terraform modules
PDF
Terraform in action
PDF
How to test infrastructure code: automated testing for Terraform, Kubernetes,...
PDF
Everything as Code with Terraform
PDF
AWS DevOps - Terraform, Docker, HashiCorp Vault
PDF
A Hands-on Introduction on Terraform Best Concepts and Best Practices
PDF
Scaling terraform
PDF
Terraform - Taming Modern Clouds
Refactoring terraform
Terraform at Scale
Developing Terraform Modules at Scale - HashiTalks 2021
Terraform: Cloud Configuration Management (WTC/IPC'16)
Introductory Overview to Managing AWS with Terraform
Terraform: Configuration Management for Cloud Services
Intro to Terraform
Final terraform
Building infrastructure with Terraform (Google)
Terraform at Scale - All Day DevOps 2017
Terraform modules and best-practices - September 2018
An intro to Docker, Terraform, and Amazon ECS
Reusable, composable, battle-tested Terraform modules
Terraform in action
How to test infrastructure code: automated testing for Terraform, Kubernetes,...
Everything as Code with Terraform
AWS DevOps - Terraform, Docker, HashiCorp Vault
A Hands-on Introduction on Terraform Best Concepts and Best Practices
Scaling terraform
Terraform - Taming Modern Clouds
Ad

Viewers also liked (20)

PDF
Terraform and cloud.ca
PDF
Terraform
PDF
Rapid Infrastructure Provisioning
PPTX
PPTX
Terraform
PDF
DevOps - Infrastructure as Code by Andre Marcelo-Tanner
PDF
Etcd terraform by Alex Somesan
PPTX
2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and TH...
PPTX
Rediscovering Developer Opportunities in the Philippines by Fred Tshidimba
PDF
TerraformでECS+ECRする話
PDF
Jsonnet, terraform & packer
PDF
Infrastructure as code with Terraform
PDF
London Hug 19/5 - Terraform in Production
PPTX
Automation with Packer and TerraForm
PDF
Delivering Go.CD with Terraform and Docker
PDF
Terraform: An Overview & Introduction
PDF
Immutable Deployments with AWS CloudFormation and AWS Lambda
PPTX
Comprehensive Terraform Training
PPTX
Scaling Your App With Docker Swarm using Terraform, Packer on Openstack
PPTX
Orchestrating Docker with Terraform and Consul by Mitchell Hashimoto
Terraform and cloud.ca
Terraform
Rapid Infrastructure Provisioning
Terraform
DevOps - Infrastructure as Code by Andre Marcelo-Tanner
Etcd terraform by Alex Somesan
2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and TH...
Rediscovering Developer Opportunities in the Philippines by Fred Tshidimba
TerraformでECS+ECRする話
Jsonnet, terraform & packer
Infrastructure as code with Terraform
London Hug 19/5 - Terraform in Production
Automation with Packer and TerraForm
Delivering Go.CD with Terraform and Docker
Terraform: An Overview & Introduction
Immutable Deployments with AWS CloudFormation and AWS Lambda
Comprehensive Terraform Training
Scaling Your App With Docker Swarm using Terraform, Packer on Openstack
Orchestrating Docker with Terraform and Consul by Mitchell Hashimoto
Ad

Similar to Infrastructure as Code: Introduction to Terraform (20)

PDF
Infrastructure as Code with Terraform
PDF
CDK Meetup: Rule the World through IaC
PDF
Infrastructure as Code with Terraform
PDF
Infrastructure as code
PDF
Agiles Peru 2019 - Infrastructure As Code
PDF
Gotchas using Terraform in a secure delivery pipeline
PDF
Infrastructure as Code with Terraform and Ansible
PDF
Infrastructure as code terraformujeme cloud
PDF
Terraform: Infrastructure as Code
PDF
Terraform introduction
PDF
Infrastructure as Code with Terraform: Koombea TechTalks
PDF
Introduction to IAC and Terraform
PDF
APIsecure 2023 - How to abuse Terraform to elevate access, Mike McCabe
PPTX
Infrastructure as code, using Terraform
PPTX
A brief introduction to IaC with Terraform by Kenton Robbins (codeHarbour May...
PPTX
Terraform day1
PDF
Hashicorp-Terraform-Deep-Dive-with-no-Fear-Victor-Turbinsky-Texuna.pdf
PDF
Terraform-2.pdf
PDF
Creating AWS infrastructure using Terraform
PDF
DevOps Braga #9: Introdução ao Terraform
Infrastructure as Code with Terraform
CDK Meetup: Rule the World through IaC
Infrastructure as Code with Terraform
Infrastructure as code
Agiles Peru 2019 - Infrastructure As Code
Gotchas using Terraform in a secure delivery pipeline
Infrastructure as Code with Terraform and Ansible
Infrastructure as code terraformujeme cloud
Terraform: Infrastructure as Code
Terraform introduction
Infrastructure as Code with Terraform: Koombea TechTalks
Introduction to IAC and Terraform
APIsecure 2023 - How to abuse Terraform to elevate access, Mike McCabe
Infrastructure as code, using Terraform
A brief introduction to IaC with Terraform by Kenton Robbins (codeHarbour May...
Terraform day1
Hashicorp-Terraform-Deep-Dive-with-no-Fear-Victor-Turbinsky-Texuna.pdf
Terraform-2.pdf
Creating AWS infrastructure using Terraform
DevOps Braga #9: Introdução ao Terraform

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
PPTX
Training Program for knowledge in solar cell and solar industry
PDF
LMS bot: enhanced learning management systems for improved student learning e...
PDF
Human Computer Interaction Miterm Lesson
PDF
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
PDF
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
DOCX
Basics of Cloud Computing - Cloud Ecosystem
PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PDF
“The Future of Visual AI: Efficient Multimodal Intelligence,” a Keynote Prese...
PDF
Connector Corner: Transform Unstructured Documents with Agentic Automation
PDF
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
PPTX
Module 1 Introduction to Web Programming .pptx
PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PDF
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
PPTX
SGT Report The Beast Plan and Cyberphysical Systems of Control
PDF
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
PDF
Ensemble model-based arrhythmia classification with local interpretable model...
PDF
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
PPTX
agenticai-neweraofintelligence-250529192801-1b5e6870.pptx
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
NewMind AI Weekly Chronicles – August ’25 Week IV
Training Program for knowledge in solar cell and solar industry
LMS bot: enhanced learning management systems for improved student learning e...
Human Computer Interaction Miterm Lesson
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
Basics of Cloud Computing - Cloud Ecosystem
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
“The Future of Visual AI: Efficient Multimodal Intelligence,” a Keynote Prese...
Connector Corner: Transform Unstructured Documents with Agentic Automation
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
Module 1 Introduction to Web Programming .pptx
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
SGT Report The Beast Plan and Cyberphysical Systems of Control
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
Ensemble model-based arrhythmia classification with local interpretable model...
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
agenticai-neweraofintelligence-250529192801-1b5e6870.pptx
Lung cancer patients survival prediction using outlier detection and optimize...

Infrastructure as Code: Introduction to Terraform

Editor's Notes

  • #2: Hello, My name is Alexander Popov and I currently work for Barclaycard US - the lesser known of the US credit card companies, although we are growing and gaining a momentum. In the past decade we’ve moved from a mere blimp on a radar to the top 10 credit card companies in the US and are accelerating towards being in the top 3…
  • #3: We are *obviously* hiring like crazy. If you have experience in developing distributed applications, big/fast data, advanced Java or DevOpsy background - we want to talk to you to convince you to come work for us. We are in the money-making business, so funding is never an issue… as long as you can convince the business that whatever you do, will generate more money for the business, that is. PM me if you want to talk to me or one of my colleagues about what we do at Barclaycard in more detail.
  • #4: So, what the is Terraform?
  • #5: Certainly not this…
  • #6: Terraform is a tool [from Hashicorp] for building, changing, and versioning infrastructure safely and efficiently.
  • #7: Terraform is not a configuration management tool, which are typically used to install and configure software on servers that already exist. but it allows existing tooling to focus on their strengths: bootstrapping and initializing resources. Using provisioners, Terraform enables any configuration management tool to be used to setup a resource once it has been created. Terraform focuses on the higher-level abstraction of the datacenter and associated services, without sacrificing the ability to use configuration management tools to do what they do best.
  • #8: Similarly to CF and Heat Terraform uses configuration files to detail infrastructure setup but it goes further by being cloud agnostic. A single tf file can orchestrate an AWS and OpenStack clusters while enabling 3rd-party providers like CloudFlare and DNSimple to be integrated to provide CDN and DNS services. This enables Terraform to represent and manage the entire infrastructure with its supporting services, instead of only the subset that exists within a single provider. It provides a unified syntax, instead of requiring operators to use non-interoperable tools for each platform and service. Terraform also separates the planning phase from the execution phase, by using the concept of an execution plan. By running terraform plan, the current state is refreshed and the configuration is consulted to generate an action plan. The plan includes all actions to be taken: which resources will be created, destroyed or modified. It can be inspected by operators to ensure it is exactly what is expected. Using terraform graph, the plan can be visualized to show dependent ordering. Once the plan is captured, the execution phase can be limited to only the actions in the plan. Other tools combine the planning and execution phases, meaning operators are forced to mentally reason about the effects of a change, which quickly becomes intractable in large infrastructures. Terraform lets operators apply changes with confidence, as they know exactly what will happen beforehand.
  • #27: The "local-exec" provisioner executes a command locally on the machine running Terraform. We're using this provisioner versus the others so we don't have to worry about specifying any connection info right now. Provisioners are run only when a resource is created. They are not a replacement for configuration management and changing the software of an already-running server, and are instead just meant as a way to bootstrap a server.