terraform/backend/remote
Martin Atkins 3c8a4e6e05 command+backend/local: -refresh-only and drift detection
This is a light revamp of our plan output to make use of Terraform core's
new ability to report both the previous run state and the refreshed state,
allowing us to explicitly report changes made outside of Terraform.

Because whether a plan has "changes" or not is no longer such a
straightforward matter, this now merges views.Operation.Plan with
views.Operation.PlanNoChanges to produce a single function that knows how
to report all of the various permutations. This was also an opportunity
to fill some holes in our previous logic which caused it to produce some
confusing messages, including a new tailored message for when
"terraform destroy" detects that nothing needs to be destroyed.

This also allows users to request the refresh-only planning mode using a
new -refresh-only command line option. In that case, Terraform _only_
performs drift detection, and so applying a refresh-only plan only
involves writing a new state snapshot, without changing any real
infrastructure objects.
2021-05-13 09:05:06 -07:00
..
testdata clean up go mod for go-tfe 2019-09-27 14:16:41 -07:00
backend.go backend/remote: clearer error when org read fails 2021-05-12 13:50:11 -07:00
backend_apply.go command+backend: generalized "plan mode" 2021-04-27 08:23:54 -07:00
backend_apply_test.go command+backend: generalized "plan mode" 2021-04-27 08:23:54 -07:00
backend_common.go command+backend: generalized "plan mode" 2021-04-27 08:23:54 -07:00
backend_context.go command+backend: generalized "plan mode" 2021-04-27 08:23:54 -07:00
backend_context_test.go clistate: Update clistate.Locker for command views 2021-02-16 07:19:22 -05:00
backend_mock.go Update Terraform Cloud/Enterprise client to v0.14.0 2021-05-03 22:25:56 -05:00
backend_plan.go command+backend/local: -refresh-only and drift detection 2021-05-13 09:05:06 -07:00
backend_plan_test.go command+backend: generalized "plan mode" 2021-04-27 08:23:54 -07:00
backend_state.go backend/remote: Fix broken state lock retry 2021-02-19 15:47:18 -05:00
backend_state_test.go refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend_test.go backend/remote: clearer error when org read fails 2021-05-12 13:50:11 -07:00
cli.go backend: Add per-operation diagnostic rendering 2021-02-12 14:30:35 -05:00
colorize.go backend/remote: implement the Local interface 2018-11-26 20:50:25 +01:00
remote_test.go backend: Faster remote backend tests 2020-11-18 16:00:05 -05:00
testing.go backend: Replace ShowDiagnostics with view.Diagnostics 2021-02-25 11:26:05 -05:00