Terraform Best Practices

Introduction

When you start using Terraform in a test or POC environment, you can start with a single folder which contains your code, variables, environmental variables and all other required components. However, this approach would not work for a large scale deployment.

If you are planning to deploy your organization’s infrastructure or client infrastructure using Terraform , you need to create a strategy first. To create a strategy, you need to consider some best practices which can be incorporated in your Terraform architecture.

In this article, we will discuss some of the best practices and important points, which can be considered and adopted during the creation of Terraform architecture.

Continue reading “Terraform Best Practices”

Deploy Terraform Code through Azure DevOps

Introduction

Using Release Pipeline in Azure DevOps, you can fully automate and standardize infrastructure deployment.

In this article, we will discuss how to configure Azure DevOps for Terraform code deployment. We will use Azure Repo as our code repository, and Release Pipeline for Infrastructure Deployment. We will also use Variable Groups to store Terraform environmental variables, and Azure Key Vault to store their values.

Continue reading “Deploy Terraform Code through Azure DevOps”

Configure Remote State File in Terraform

Introduction

Terraform State file is one of the most vital components of Terraform. As the name suggests, the state file keeps track on the current state of the inventory.

In this article, we will discuss how to configure a remote state file in Terraform.

The remote state file is also referred as remote backend, as remote state is a feature of Terraform backends.

Continue reading “Configure Remote State File in Terraform”