terraform/vendor/github.com/hashicorp
Paddy 5127f1ef8b
command: Unmanaged providers
This adds supports for "unmanaged" providers, or providers with process
lifecycles not controlled by Terraform. These providers are assumed to
be started before Terraform is launched, and are assumed to shut
themselves down after Terraform has finished running.

To do this, we must update the go-plugin dependency to v1.3.0, which
added support for the "test mode" plugin serving that powers all this.

As a side-effect of not needing to manage the process lifecycle anymore,
Terraform also no longer needs to worry about the provider's binary, as
it won't be used for anything anymore. Because of this, we can disable
the init behavior that concerns itself with downloading that provider's
binary, checking its version, and otherwise managing the binary.

This is all managed on a per-provider basis, so managed providers that
Terraform downloads, starts, and stops can be used in the same commands
as unmanaged providers. The TF_REATTACH_PROVIDERS environment variable
is added, and is a JSON encoding of the provider's address to the
information we need to connect to it.

This change enables two benefits: first, delve and other debuggers can
now be attached to provider server processes, and Terraform can connect.
This allows for attaching debuggers to provider processes, which before
was difficult to impossible. Second, it allows the SDK test framework to
host the provider in the same process as the test driver, while running
a production Terraform binary against the provider. This allows for Go's
built-in race detector and test coverage tooling to work as expected in
provider tests.

Unmanaged providers are expected to work in the exact same way as
managed providers, with one caveat: Terraform kills provider processes
and restarts them once per graph walk, meaning multiple times during
most Terraform CLI commands. As unmanaged providers can't be killed by
Terraform, and have no visibility into graph walks, unmanaged providers
are likely to have differences in how their global mutable state behaves
when compared to managed providers. Namely, unmanaged providers are
likely to retain global state when managed providers would have reset
it. Developers relying on global state should be aware of this.
2020-05-26 17:48:57 -07:00
..
aws-sdk-go-base deps: github.com/hashicorp/aws-sdk-go-base@v0.4.0 (#22994) 2019-10-11 12:50:12 -04:00
consul update consul api packages 2017-10-28 19:44:10 -04:00
errwrap vendor: Update HCL2 and cty, and other related packages 2018-10-16 19:14:11 -07:00
go-azure-helpers vendor: upgrade Azure SDK and Azure/go-autorest 2019-12-02 10:04:49 -08:00
go-checkpoint vendor: github.com/hashicorp/go-checkpoint@v0.5.0 2019-02-21 08:50:02 +00:00
go-cleanhttp go mod tidy & go mod vendor 2019-10-11 22:41:27 +01:00
go-getter update go-getter 2020-01-06 20:44:02 -05:00
go-hclog update go-plugin and hclog 2018-10-16 19:14:11 -07:00
go-multierror vendor: Update HCL2 and cty, and other related packages 2018-10-16 19:14:11 -07:00
go-plugin command: Unmanaged providers 2020-05-26 17:48:57 -07:00
go-retryablehttp gomod: update `go-tfe` 2019-04-08 11:13:14 +02:00
go-rootcerts vendor: github.com/hashicorp/go-rootcerts@v1.0.0 2019-02-21 08:54:14 +00:00
go-safetemp vendor: github.com/terraform-providers/terraform-provider-aws@v1.58.0 2019-02-12 16:32:22 +00:00
go-slug Point to updated go-tfe 2019-11-15 14:14:17 -05:00
go-tfe go get github.com/hashicorp/go-tfe@v0.8.1 + vendor 2020-05-19 11:14:27 -07:00
go-uuid gomod: update `go-tfe` 2019-04-08 11:13:14 +02:00
go-version go mod vendor; go mod tidy 2019-10-17 11:14:30 -04:00
golang-lru modules: update Azure deps to latest 2019-07-30 09:12:14 -07:00
hcl vendor: go get github.com/hashicorp/hcl/v2@v2.5.1 2020-05-14 09:36:28 -04:00
hil vendor: github.com/hashicorp/hil@latest 2019-02-12 15:56:22 +00:00
serf vendor: update to latest github.com/zclconf/go-cty 2018-10-16 19:14:11 -07:00
terraform-config-inspect Mildwonkey/tfconfig upgrade (#23670) 2020-01-10 11:54:53 -05:00
terraform-svchost go mod tidy & go mod vendor 2019-10-11 22:41:27 +01:00
vault vendor: github.com/terraform-providers/terraform-provider-aws@v1.58.0 2019-02-12 16:32:22 +00:00
yamux update vendor from go.mod 2018-12-05 20:30:16 -05:00