Category "hcl"

Howto uniquely claim an element from a list in terraform?

I'm looking for a way to uniquely assign an element from a list to a resource in terraform. I find it hard to explain so I hope the following explains what I wa

bypass input values in GitHub Actions workflow to a terraform variables file

As part of provisioning google cloud resources with GitHub actions using terraform I need to bypass some input values using terraform variables file, the issue

Is timestamp function not supported in HCL2?

I am trying to get the current day and put in a local locals { current_day = formatdate("DD/MM/YYYY", timestamp()) } but a I get this error Call to unknown

Should .terraform.lock.hcl be included in the .gitignore file?

From my current knowledge, there is no reason .terraform.lock.hcl should be included in the .gitignore. Nothing about this file is private, or is there?