terraform/backend/remote
Martin Atkins a8d01e3940 backend/remote: Report invalid variables only remotely
The remote backend uses backend.ParseVariableValues locally only to decide
if the user seems to be trying to use -var or -var-file options locally,
since those are not supported for the remote backend.

Other than detecting those, we don't actually have any need to use the
results of backend.ParseVariableValues, and so it's better for us to
ignore any errors it produces itself and prefer to just send a
potentially-invalid request to the remote system and let the remote system
be responsible for validating it.

This then avoids issues caused by the fact that when remote operations are
in use the local system does not have all of the required context: it
can't see which environment variables will be set in the remote execution
context nor which variables the remote system will set using its own
generated -var-file based on the workspace stored variables.
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 Prevent a panic caused by writing to a nil map 2019-04-11 14:34:14 +02: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