slide

Terraform

terraform

Using Provider Defined Functions in Terraform

Have you ever wished there were custom functions in Terraform? Well now there are! Sort of. Let me explain. If you’d prefer your information in video format, check out the …

Ned Bellavance 6 min read
terraform

Variable Validation Improvements in Terraform 1.9

The release of Terraform 1.9 brings with it a welcome improvement regarding input variable validation. In this post I’ll review the change in functionality and provide a few …

Ned Bellavance 8 min read
terraform

Using Azure Container Instances for an Azure DevOps Self-hosted Agent

When you create a new organization in Azure DevOps, you’ll quickly discover you’re not able to run any pipeline jobs using Microsoft-hosted agents. In fact, if you kick …

Ned Bellavance 6 min read
terraform

Creating Your First Terraform Repository

Terraform is an infrastructure as code tool. The key term here being code. And where do you store your code? In a version control system like GitHub! I recently published a video …

Ned Bellavance 9 min read
terraform

Comparing OpenTofu and Terraform

[Last updated 2024-04-30 for Terraform 1.8 and OpenTofu 1.7] Terraform and OpenTofu are both IaC tools that share a common ancestry. OpenTofu was created when HashiCorp shifted the …

Ned Bellavance 2 min read
terraform

Terraform Taint Is Bad, And Here's Why

The terraform taint command marks an existing resource in state data for replacement. On it’s surface, this seems like a useful feature. However, it’s actually a …

Ned Bellavance 8 min read
terraform

Using Optional Arguments in Terraform Input Variables

Well hot damn! Terraform 1.3 has introduced an incredibly popular feature for the Terraform community: optional arguments. This is a feature that has been requested for a long …

Ned Bellavance 4 min read
terraform

Nonsensitive function fails in Terraform

When I was trying to work with a module in Terraform, I came across an interesting issue. The module in question created an Azure AD service principal and optionally a secret for …

Ned Bellavance 3 min read
terraform

Replacing the template_cloudinit_config data source

I was working on updating some Terraform code as part of a consulting engagement and I came across an EC2 configuration that was using the template_cloudinit_config data source to …

Ned Bellavance 8 min read