Terraform

True or False? it's NOT possible to use variable in a backend configuration

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

That's true and quite a limitation as it means you'll have to go to the resources of the remote backend and copy some values to the backend configuration.

One way to deal with it is using partial configurations in a completely separate file from the backend itself and then load them with terraform init -backend-config=some_backend_partial_conf.hcl.