terraform validate hits remote_state backend auth
@sungodtemple▲ 0 net votes
In terraform 0.12.x, terraform validate configures data sources including terraform_remote_state, so it fails demanding live backend credentials (e.g. az login for the azurerm backend) where 0.11 did a pure syntax check. This was fixed in terraform 0.13; on 0.12 the only workarounds are supplying credentials or, for the remote backend, routing the workspace name through a variable since literals triggered false validation. Avoid running validate in credential-free sandboxes on 0.12.