terraform/website/docs/internals
Alisdair McDiarmid f5b90f84a8 jsonconfig: Improve provider configuration output
When rendering configuration as JSON, we have a single map of provider
configurations at the top level, since these are globally applicable.
Each resource has an opaque key into this map which points at the
configuration data for the provider.

This commit fixes two bugs in this implementation:

- Resources in non-root modules had an invalid provider config key,
  which meant that there was never a valid reference to the provider
  config block. These keys were prefixed with the local module name
  instead of the path to the module. This is now corrected.

- Modules with passed provider configs would point to either an empty
  provider config block or one which is not present at all. This has
  been fixed so that these resources point to the provider config block
  from the calling module (or wherever up the module tree it was
  originally defined).

We also add a "full_name" key-value pair to the provider config block,
with the entire fully-qualified provider name including hostname and
namespace.
2022-02-07 15:05:58 -05:00
..
archiving.mdx migrate docs to mdx 2021-12-14 18:41:17 -08:00
credentials-helpers.mdx migrate docs to mdx 2021-12-14 18:41:17 -08:00
debugging.mdx migrate docs to mdx 2021-12-14 18:41:17 -08:00
graph.mdx migrate docs to mdx 2021-12-14 18:41:17 -08:00
index.mdx migrate docs to mdx 2021-12-14 18:41:17 -08:00
json-format.mdx jsonconfig: Improve provider configuration output 2022-02-07 15:05:58 -05:00
lifecycle.mdx migrate docs to mdx 2021-12-14 18:41:17 -08:00
login-protocol.mdx migrate docs to mdx 2021-12-14 18:41:17 -08:00
machine-readable-ui.mdx migrate docs to mdx 2021-12-14 18:41:17 -08:00
module-registry-protocol.mdx migrate docs to mdx 2021-12-14 18:41:17 -08:00
provider-meta.mdx migrate docs to mdx 2021-12-14 18:41:17 -08:00
provider-network-mirror-protocol.mdx migrate docs to mdx 2021-12-14 18:41:17 -08:00
provider-registry-protocol.mdx migrate docs to mdx 2021-12-14 18:41:17 -08:00
remote-service-discovery.mdx migrate docs to mdx 2021-12-14 18:41:17 -08:00