opentofu/docs
Martin Atkins 39e609d5fd vendor: switch to HCL 2.0 in the HCL repository
Previously we were using the experimental HCL 2 repository, but now we'll
shift over to the v2 import path within the main HCL repository as part of
actually releasing HCL 2.0 as stable.

This is a mechanical search/replace to the new import paths. It also
switches to the v2.0.0 release of HCL, which includes some new code that
Terraform didn't previously have but should not change any behavior that
matters for Terraform's purposes.

For the moment the experimental HCL2 repository is still an indirect
dependency via terraform-config-inspect, so it remains in our go.sum and
vendor directories for the moment. Because terraform-config-inspect uses
a much smaller subset of the HCL2 functionality, this does still manage
to prune the vendor directory a little. A subsequent release of
terraform-config-inspect should allow us to completely remove that old
repository in a future commit.
2019-10-02 15:10:21 -07:00
..
images docs: Import some existing docs to bootstrap the codebase docs section 2019-03-25 08:01:44 -07:00
plugin-protocol docs: README for the plugin-protocol directory 2019-06-11 14:29:35 -07:00
architecture.md vendor: switch to HCL 2.0 in the HCL repository 2019-10-02 15:10:21 -07:00
maintainer-etiquette.md docs: Import some existing docs to bootstrap the codebase docs section 2019-03-25 08:01:44 -07:00
README.md docs: README for the plugin-protocol directory 2019-06-11 14:29:35 -07:00
resource-instance-change-lifecycle.md docs: Import some existing docs to bootstrap the codebase docs section 2019-03-25 08:01:44 -07:00

Terraform Core Codebase Documentation

This directory contains some documentation about the Terraform Core codebase, aimed at readers who are interested in making code contributions.

If you're looking for information on using Terraform, please instead refer to the main Terraform CLI documentation.

Terraform Core Architecture Documents

  • Terraform Core Architecture Summary: an overview of the main components of Terraform Core and how they interact. This is the best starting point if you are diving in to this codebase for the first time.

  • Resource Instance Change Lifecycle: a description of the steps in validating, planning, and applying a change to a resource instance, from the perspective of the provider plugin RPC operations. This may be useful for understanding the various expectations Terraform enforces about provider behavior, either if you intend to make changes to those behaviors or if you are implementing a new Terraform plugin SDK and so wish to conform to them.

    (If you are planning to write a new provider using the official SDK then please refer to the Extend documentation instead; it presents similar information from the perspective of the SDK API, rather than the plugin wire protocol.)

  • Plugin Protocol: gRPC/protobuf definitions for the plugin wire protocol and information about its versioning strategy.

    This documentation is for SDK developers, and is not necessary reading for those implementing a provider using the official SDK.

Contribution Guides

  • Maintainer Etiquette: guidelines and expectations for those who serve as Pull Request reviewers, issue triagers, etc.