Author: Padma Achanta
-
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
·
-
Resolving the N+1 Query Problem in MongoDB
As MongoDB continues to grow in popularity for handling large-scale, cloud-based applications, one common challenge that developers face is the N+1 query problem. This issue arises when a MongoDB schema requires frequent lookups across collections, leading to multiple small queries that significantly degrade performance. In this article, we’ll dive into how the N+1 query problem…
Written by
·