Tag: Infrastructure as Code

Browse all articles, tutorials, and guides about Infrastructure as Code

Guides

Posts

Terraform
2025-03-21|6 min read

Best practices when using Terraform?

Discover essential best practices for using Terraform to manage your infrastructure effectively and securely.

Terraform
2025-01-23|6 min read

Should .terraform.lock.hcl Be in .gitignore? (The Answer Might Surprise You)

The .terraform.lock.hcl file causes confusion for many Terraform users. Learn why you should commit it to version control and how to handle it properly.

Terraform
2025-01-22|8 min read

Conditional Resource Creation in Terraform Based on .tfvars Variables

Learn how to conditionally create Terraform resources using variables from .tfvars files. Learn count, for_each, and dynamic blocks for flexible infrastructure.

Terraform
2025-01-13|7 min read

How to Fix "Error acquiring the state lock: ConditionalCheckFailedException"

Learn how to diagnose and fix Terraform state lock errors that prevent your infrastructure deployments from running.

Terraform
2024-12-01|7 min read

How to Split a Terraform File (main.tf) into Several Files (No Modules)

Organizing Terraform configurations by splitting a single main.tf file into multiple files can improve readability and maintainability. Learn how to do this without using modules.

Terraform
2024-11-20|5 min read

How to Execute Terraform Actions Without the Interactive Prompt

Learn how to automate Terraform workflows by bypassing the interactive prompt for commands like apply and destroy.

Terraform
2024-11-15|4 min read

How do you do simple string concatenation in Terraform?

Learn how to perform string concatenation in Terraform using interpolation and the join function.

Terraform
2024-11-15|6 min read

How to for_each through a list(objects) in Terraform

Learn how to use the for_each construct in Terraform to iterate through lists of objects and dynamically create resources.

Terraform
2024-06-21|5 min read

Is there an AND/OR Conditional Operator in Terraform?

Learn how to use AND/OR conditional operators in Terraform to create dynamic configurations.

Terraform
2024-06-16|5 min read

How are data sources used in Terraform?

Understand how to use data sources in Terraform to fetch information about existing resources.

Terraform
2024-06-15|5 min read

Upgrade Terraform to Specific Version

Learn how to upgrade Terraform to a specific version on your system, ensuring compatibility with your infrastructure.

Terraform
2024-05-15|5 min read

I would like to run Terraform only for a specific resource

Learn how to target specific resources in Terraform to save time and avoid unnecessary changes.

Terraform
2024-04-21|6 min read

How to Write an if, else, elsif Conditional Statement in Terraform

Learn how to use if, else, and elsif conditional statements in Terraform to create dynamic configurations.

Terraform
2024-03-29|7 min read

Terraform Failing with Invalid for_each Argument / The Given "for_each" Argument Value is Unsuitable

Learn how to troubleshoot and fix the "Invalid for_each argument" error in Terraform.

Terraform
2024-03-21|6 min read

Can Terraform Be Used to Provision On-Premises Servers?

Learn how Terraform can be used to provision on-premises servers by integrating with tools like VMware vSphere, Ansible, and bare-metal providers.

Terraform
2024-02-21|4 min read

Concatenate a String with a Variable in Terraform

Learn how to concatenate strings with variables in Terraform to create dynamic configurations.

Terraform
2024-02-18|6 min read

Modules + Output from for_each

Learn how to use for_each with modules in Terraform to dynamically create resources and manage outputs.