Skip to content
Menu
Archicode
  • About me
Archicode
October 26, 2023October 26, 2023

My experience with Terraform.

  • Terraform is a technology that allows you to deploy your infrastructure using code.
  • It uses YAML as a file format.
  • It needs registered providers to create the desired infra in the right environment.
  • You can create infra on Azure, AWS as well as on premise.

When to use it?

When your project requires a specific infrastructure, you can easily create it using terraform. This being basically code, you can source control it. You can also create the infrastructure in multiple environments.

Let’s say you often publish website that have azure functions acting as the backend. You can have one terraform script that will create the new infrastructure whenever needed, just by running the script. No manual intervention is needed.

This means you can reuse the script to create the infra multiple times or customise it sufficiently in order to reuse it for other projects as well.

How?

You need basically one file: main.tf which is going to contain all the resources you want to create. You can use variables that will be put in the variables.tf file or directly in the main.tf if your script is small or you don’t want multiple files. I recommend using the variables.tf and also splitting up the main.tf when your script becomes too big to be readable in one file.

Available providers

When deploying in the cloud, you have access to different providers that allow terraform to connect to your tenant and create the infrastructure. There are 3620 different providers. You can then them here.

 

In conclusion, Terraform is helpful but beware as the apparent simplicity can hide a world of hardships and difficulties.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How to Deactivate and Reactivate a Plugin in Microsoft Dynamics 365: Resolving the “ProjectOperations_Anchor PackageImportFailed” Error
  • Issue when debugging Azure Function locally
  • Understanding Blazor Component Parameters
  • Error NETSDK1082 in Maui Blazor Hybrid App
  • Understanding @inject in Blazor Components

Recent Comments

  1. Harisinou on Understanding Blazor Component Parameters
  2. ปั้มไลค์ on Encourage your kids to read books
  3. Jamesglalt on How to : Blazor components (basic)
  4. Liza Conable on How to blazorify an existing mvc app
  5. BrianKit on How to : Blazor components (basic)

Archives

  • April 2025
  • May 2024
  • December 2023
  • November 2023
  • October 2023
  • May 2023
  • March 2021
  • August 2020
  • July 2020
  • June 2020
  • October 2019
  • June 2019
  • February 2019

Categories

  • .NET
  • Fixes
  • IoT
  • Misc
  • Uncategorised
  • Uncategorized
©2025 Archicode | Powered by WordPress and Superb Themes!