terraform/providers
James Bardin c1303f8482 providers PrepareProviderConfig
Change ValidateProviderConfig to PrepareProviderConfig.

Providers have a concept of "required fields with defaults" that that
was handled previously by helper/schema doing input and validation.
Because Input and Validation is mostly now handled by core, the provider
had no way of setting default values for missing required attributes.

To achieve the same behavior with new providers, there will be a
PrepareProviderConfig, which allow for manual validation, as well as
alteration of the config. The provider is free to set whatever
attributes necessary to create a valid config and return it to the
caller. If a new config is returned, it will be used instead of the
original in the subsequent Configure call, however core may still add
missing required values during an optional Input phase.
2018-10-17 21:31:52 -04:00
..
addressed_types.go various: helpers for collecting necessary provider types 2018-10-16 18:50:29 -07:00
addressed_types_test.go various: helpers for collecting necessary provider types 2018-10-16 18:50:29 -07:00
doc.go
provider.go providers PrepareProviderConfig 2018-10-17 21:31:52 -04:00
resolver.go providers: Resolver and Factory types 2018-10-16 19:11:09 -07:00