After upgrading to Terraform 12, I was getting the following error when running plan/apply:
Error: Argument or block definition required
on /tmp/tmpcSY9YL line 1:
1: <input variables dict>
An argument or block definition is required here.
After more testing I found that Terraform 12 no longer accepts variable definition files without an extension. This change fixes that problem and has no effect on Terraform versions < 12.
After upgrading to Terraform 12, I was getting the following error when running plan/apply:
After more testing I found that Terraform 12 no longer accepts variable definition files without an extension. This change fixes that problem and has no effect on Terraform versions < 12.
https://www.terraform.io/docs/configuration/variables.html#variable-definitions-tfvars-files
Steps to reproduce this problem: