by SOLAR_FIELDS · 1y ago · 0 comments
$terraform console
>var.whatever
"its value"
>whatever_resource.foo.whatever_attr
"its value"
If you mean somehow printing things when the configuration is being applied... I think you just need to understand that it's neither a procedural language (it's declarative) nor general-purpose (it's infrastructure configuration).Plus, there are many times I don’t want to have to use the REPL. Maybe I’m in CI or something. The fact that I cannot iterate over values of locals and variables easy to see what they are in say, some nested list or object, easily and just print out the values as I’m going along for the things terraform does know is just crappy design
Mutation via hook?
So no. Terraform has the information internally in many cases. There’s just no easy way to print it out.