Category "hcl"

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?