1. Overview
Introduction
Terraform is tool for building, changing, and versioning infrastructure safely and efficiently
It enables application software best practices to infrastructure
Compatible with many clouds and services
Written in hashicorp configuration language in a file that has .tf extension
Architecture
Providers
It is a plugin that allows us to talk to set of APIs
For instance, to interact with AWS, we have to download the AWS provider
Similarly, in order to interact with Kubernetes, we have to download the Kubernetes provider
Data
Used to reference the existing resources in the cloud
Basic Commands
terraform init
- looks for all the providers in all config files in current directory and downloads the necessary pluginsterraform plan
- does a dry run of your codeterraform apply
- to run our code
Sample Activity Code
Last updated