terraform/backend/remote
Martin Atkins b10f058cbb backend/remote: Only load variables if we're going to use them
Some commands don't use variables at all or use them in a way that doesn't
require them to all be fully valid and consistent. For those, we don't
want to fetch variable values from the remote system and try to validate
them because that's wasteful and likely to cause unnecessary error
messages.

Furthermore, the variables endpoint in Terraform Cloud and Enterprise only
works for personal access tokens, so it's important that we don't assume
we can _always_ use it. If we do, then we'll see problems when commands
are run inside Terraform Cloud and Enterprise remote execution contexts,
where the variables map always comes back as empty.
2019-10-18 11:31:19 -07:00
..
testdata clean up go mod for go-tfe 2019-09-27 14:16:41 -07:00
backend.go Replace import paths & set UA string where necessary 2019-10-11 22:40:54 +01:00
backend_apply.go backend/remote: Report invalid variables only remotely 2019-10-18 11:31:19 -07:00
backend_apply_test.go Standardise directory name for test data 2019-06-30 10:16:15 +02:00
backend_common.go backend/remote: Report invalid variables only remotely 2019-10-18 11:31:19 -07:00
backend_context.go backend/remote: Only load variables if we're going to use them 2019-10-18 11:31:19 -07:00
backend_mock.go vendor latest go-tfe 2019-09-27 15:13:40 -07:00
backend_plan.go backend/remote: Report invalid variables only remotely 2019-10-18 11:31:19 -07:00
backend_plan_test.go vendor latest go-tfe 2019-09-27 15:13:40 -07:00
backend_state.go backend/remote: do not unlock after a failed upload 2019-04-29 21:23:33 +02:00
backend_state_test.go backend/remote: cleanup test connections 2019-02-07 09:55:19 +01:00
backend_test.go Replace import paths & set UA string where necessary 2019-10-11 22:40:54 +01:00
cli.go Change how to fall back from remote to local backend 2018-11-20 22:25:52 +01:00
colorize.go backend/remote: implement the Local interface 2018-11-26 20:50:25 +01:00
remote_test.go Change how to fall back from remote to local backend 2018-11-20 22:25:52 +01:00
testing.go Replace import paths & set UA string where necessary 2019-10-11 22:40:54 +01:00