Quiz 6 Question 15 of 20

An engineer wants each environment's state in a different S3 bucket and wrote bucket = var.state_bucket inside the backend block. terraform init fails with an error about variables not being allowed there. The configuration targets Terraform 1.15. What is the supported way to vary backend settings per environment?

Select an answer to reveal the explanation.

Motivation