Martin Atkins

Results 1242 comments of Martin Atkins

Hi @jaffel-lc, I think in this case the problem is that Terraform is trying its best to find some way to make your conditional expression valid through automatic type conversions:...

Indeed, when you are constructing something that's going to be sent essentially verbatim as JSON (or similar) then you may need to postprocess it to transform it from the conventions...

The kind of pre-processing I meant was something that should happen _after_ you've built a data structure in Terraform's type system. By analogy to Go: it's typical to first build...

Thanks for that extra context! To be clear, I'm just trying to give you context about why Terraform behaves the way it does and why I perceive it as an...

I've intentionally excluded an `exprdecode` here because we have no known real use-case for it and it would amount to a weirdly-restrictive "eval"-type function that doesn't allow any function calls...

I've left this as a draft for now because it will need to be revised slightly once https://github.com/hashicorp/terraform/pull/34603 is merged, to remove the current finagling from error to diagnostic and...

This is now updated for #34603, by removing the few spots where it was previously twiddling from error to tfdiags and then back to error again.

A funny coincidence that (as a background task while I was watching a presentation this morning) I just implemented something that _could_ have been a caller of this function, if...

We delay because of the historical quirk that we parse the environment variables and `-var` command line options differently depending on the declared type of the variable, and so we...

Hi @leuthelt, In your reproduction steps you mentioned commenting out the entire resource block. That means that you removed the provisioner from the configuration, and so Terraform didn't execute it....