Live data from Hacker News

Terraform Scripting Concepts

serdigital64.github.io

1–10 of 23 posts

Re: Terraform Scripting Concepts

#3
“script” seems like absolutely the wrong terminology for something as die-hard-declarative as Terraform.

In my circle of engineers we tend to call it “code” but this isn’t ideal either - implies a general purpose language.

Re: Terraform Scripting Concepts

#5
post #3

“script” seems like absolutely the wrong terminology for something as die-hard-declarative as Terraform. In my circle of engineers we tend to call it “code” but this isn’t ideal either - implies a general purpose language.

Comprehension, like list comprehension, might be a better term

Re: Terraform Scripting Concepts

#7
post #3

“script” seems like absolutely the wrong terminology for something as die-hard-declarative as Terraform. In my circle of engineers we tend to call it “code” but this isn’t ideal either - implies a general purpose language.

My circle also just use "code" as far as I'm aware, though I tend to think of it as a definition instead. Template would also fit but you can use templates within Terraform so that could be confusing.

Re: Terraform Scripting Concepts

#8
post #2

I hate seeing Terraform script or scripting . Am I the only one?

No you’re not the only one. The problem with Terraform “Scripting” is in a lot of cases it takes a loooong time to find out your “runtime” errors. These are typically fat fingered strings. I think something like AWS CDK, where you find these errors at compile, time is a better approach.

Re: Terraform Scripting Concepts

#9
post #6
post #2

I hate seeing Terraform script or scripting . Am I the only one?

What do you think of Pulumi? My understanding is that this essentially uses TF as a backend

This = Pulumi?

It doesn't use TF as a backend. It builds on top of Terraform providers in many cases.

Re: Terraform Scripting Concepts

#10
post #6
post #2

I hate seeing Terraform script or scripting . Am I the only one?

What do you think of Pulumi? My understanding is that this essentially uses TF as a backend

Your understanding is wrong. The CRUD logic of some commonly used providers is based upon that in Terraform providers, but the TF engine is not used by Pulumi.
Post reply on HN