Ability to seperate block values in tfvars

Hello all,

I’ve been reading through the docs a bit and can’t find a solid answer.

My question is, is it possible to put the settings for the two command down below in the same tfvars file:

  • terraform init -backend-config
  • terraform plan -var-file

cheers

Hi @caige-kelly,

The syntax for both is compatible in principle, so as long as the backend you’ve chosen expects the same arguments as your root module expects input variables it is technically possible to do that, but I would say it’s pretty unusual since a root module would typically not need any of the settings that the backend expects.