Debian Codegraph @

tfconfig/doc.go

raw
1 // Copyright (c) HashiCorp, Inc.
2 // SPDX-License-Identifier: MPL-2.0
3
4 // Package tfconfig is a helper library that does careful, shallow parsing of
5 // Terraform modules to provide access to high-level metadata while
6 // remaining broadly compatible with configurations targeting various
7 // different Terraform versions.
8 //
9 // This packge focuses on describing top-level objects only, and in particular
10 // does not attempt any sort of processing that would require access to plugins.
11 // Currently it allows callers to extract high-level information about
12 // variables, outputs, resource blocks, provider dependencies, and Terraform
13 // Core dependencies.
14 //
15 // This package only works at the level of single modules. A full configuration
16 // is a tree of potentially several modules, some of which may be references
17 // to remote packages. There are some basic helpers for traversing calls to
18 // modules at relative local paths, however.
19 //
20 // This package employs a "best effort" parsing strategy, producing as complete
21 // a result as possible even though the input may not be entirely valid. The
22 // intended use-case is high-level analysis and indexing of externally-facing
23 // module characteristics, as opposed to validating or even applying the module.
24 package tfconfig