Error: Unable to compute static value
on backend.tf line 4, in terraform:
4: backend "remote" {
backend.remote depends on var.tofu_backend which is not available
What you might need to do to fix it is pass the vars to every command. i.e. they are needed in tf init, tf show, tf state * etc.
We had to rework some of our automation to get it all to work.
OpenTofu v1.8.0 supports early variable/locals evaluation which allows for variables in backends. These do not appear to work in
tftui
.Here are the commands I've tried.
And the error output
Config of the backend
Are there any plans to support Tofu and backends with vars?