Category: IaC
-
Day 7: Terraform Basic Commands (terraform apply)
One essential command in Terraform’s workflow is terraform apply, which helps you create or update cloud resources automatically. Let’s break down what it does and why it’s important. After you’ve written your infrastructure code in Terraform (those .tf files), you’ll need to actually create or change the resources defined in that code. That’s where terraform…
Written by
·
-
Day 6: Terraform Basic Commands (terraform plan)
When working with Terraform, one of the essential commands that I rely on during every deployment cycle is terraform plan. This command is like a crystal ball that helps me preview changes before they are made to my infrastructure, ensuring that no unexpected modifications slip through the cracks. Let me walk you through the significance…
Written by
·
-
Day 5: Terraform Basic Commands (terraform init)
Terraform is a powerful Infrastructure as Code (IaC) tool that simplifies managing and provisioning cloud infrastructure. If you’re new to Terraform, here are some basic commands to help you get started. terraform init Before you can use Terraform, you need to initialize your working directory. This command sets up the environment, downloads necessary provider plugins,…
Written by
·
-
Day 4: Terraform State Backup File
The Terraform State Backup file which is named as terraform.tfstate.backup is a backup of your Terraform state file. When you make changes to the infrastructure (by running terraform apply) and update the state file, Terraform automatically creates a backup of the previous state file before applying the changes. Terraform state backup file looks like below.…
Written by
·
-
Day 3: Terraform State file
The Terraform State file is a critical component when using Terraform for Infrastructure as Code (IaC). It is a JSON file that tracks the current state of your infrastructure managed by Terraform. This file is used by Terraform to map real-world resources to your configuration and to store metadata associated with those resources. Key Points…
Written by
·
-
Day 2: Configuration files in Terraform
Terraform’s core configuration typically consists of three key files: main.tf, variables.tf, and outputs.tf. These files serve distinct purposes within the infrastructure-as-code framework. Here’s a brief overview of each file’s role in a Terraform project. main.tf The file named main.tf serves as the primary configuration document for defining the infrastructure you intend to establish. This file…
Written by
·