Infra Automation by Terraform Dynamic Block for Map(Objects) Usecase— Part6

  • Reading time:3 mins read

This discussion demonstrates the use of dynamic blocks in Terraform to create Azure Front Door routing rules. It defines a map of routing rules in the terraform.tfvars file, where each rule includes attributes like accepted protocols, patterns to match, and frontend endpoints. The dynamic block is used to iterate over these routing rules and generate configuration blocks for each rule dynamically. In the case of forwarding rules, another nested dynamic block is used to configure forwarding settings.

Continue ReadingInfra Automation by Terraform Dynamic Block for Map(Objects) Usecase— Part6

Infra Automation by Terraform Pipeline Setup — Part5

  • Reading time:5 mins read

In this part, we explore the benefits and steps involved in setting up a Terraform pipeline for Azure. The pipeline ensures consistent Infrastructure as Code (IaC) deployments and automates provisioning and updates. Integration with version control systems like Git allows for tracking changes and collaboration. The pipeline also enhances security through secrets management for sensitive information. The pipeline is structured with multiple jobs, including Terraform Plan, Review, and Deploy, to manage infrastructure changes efficiently and securely.

Continue ReadingInfra Automation by Terraform Pipeline Setup — Part5

Infra Automation by Terraform for Azure Cloud VM— Part 4

  • Reading time:4 mins read

This Terraform setup automates the provisioning of an Azure Virtual Machine (VM) with managed disks. It uses variables.tf to define key parameters like resource group name, VM size, and admin credentials. In main.tf, resources such as a resource group, virtual network, subnet, network security group, and a Windows VM are created. The VM is configured with a custom OS disk size and a specified Windows image. The terraform.tfvars file provides variable values for easy configuration, and the terraform plan and terraform apply commands are used to deploy the infrastructure.

Continue ReadingInfra Automation by Terraform for Azure Cloud VM— Part 4

Infra Automation by Terraform for Azure Cloud — Part 3

  • Reading time:6 mins read

In Part 3 of this Terraform Azure Automation series, authenticate Terraform with Azure by logging in via Azure CLI and setting your subscription ID. Create a Service Principal with Contributor permissions and configure environment variables (client ID, secret, subscription ID, tenant ID). Set up the Azure provider in a main.tf file, initialize Terraform, and apply the changes to manage your Azure infrastructure.

Continue ReadingInfra Automation by Terraform for Azure Cloud — Part 3

Importance of Terraform in Realtime Usecases — Part1

  • Reading time:4 mins read

Terraform is an open-source Infrastructure as Code (IaC) tool for defining, provisioning, and managing infrastructure in a declarative, version-controlled manner. It supports multiple cloud providers, ensuring consistency and scalability across environments. With features like modularity, dependency graphs, and automated change management, Terraform simplifies infrastructure operations and enhances collaboration in modern cloud ecosystems

Continue ReadingImportance of Terraform in Realtime Usecases — Part1