☰
Courses
›
DevOps Zero to Hero
›
Configuration Management & IaC
›
Video 23
Everything About Terraform: Projects, Remote Backends, and Modules
📚
Theory
0/7
🧪
Lab Practice
💬
Interview Questions
0%
Contents
0 of 7 sections complete · 7 min total
01
1
The Terraform Lifecycle
Terraform configuration starts with declarative files (typically ending in .tf) which define the resources you want to create on your cloud…
Workflow
1 min read
02
1
Writing a Terraform Configuration File
A standard main.tf file contains several key blocks. It usually starts with a terraform block specifying the required provider version,…
Tooling
1 min read
03
Terraform State File (`terraform.tfstate`)
The State File is the heart of Terraform. When you run terraform apply, Terraform creates a terraform.tfstate file to keep track of the…
Tooling
1 min read
04
The Problem with Local State Files
By default, Terraform stores the state file locally on your machine. This is a terrible practice for organizations for two main reasons: 1)…
Troubleshooting
1 min read
05
1
The Ideal Terraform Setup: Remote Backends and State Locking
To solve the problems with local state, devops teams use Remote Backends. In AWS, you store the terraform.tfstate file in an S3 bucket. To…
Tooling
1 min read
06
Terraform Modules
Terraform Modules are a way to write reusable infrastructure code. If you constantly create a pattern of 'EC2 Instance + Application Load…
Tooling
1 min read
07
1
Disadvantages of Terraform
State File Dependency: If the state file is corrupted or accidentally deleted, Terraform loses track of the infrastructure.. Manual Changes…
Tooling
1 min read