OpenTofu lets you declaratively manage your cloud infrastructure.
Go to file
Martin Atkins d49e991c3c plans/objchange: Support nested unknowns in our unrefinedValue shim
Several parts of the objchange logic incorrectly use cty.Value.RawEquals
for value comparison, instead of more appropriate comparison methods like
cty.Value.Equals or c.Value.Range().Includes. That makes them incorrectly
consider two unknown values with the same type but different refinements
as always non-equal, rather than evaluating based on the overlap between
the refinements (if any).

As a short-term fix for that we previously added this unrefinedValue shim
that just strips away the refinements for comparison, thus allowing
callers to continue using RawEquals as long as they've already taken care
of all of the other things that can make that go wrong, such as value
marks.

Unfortunately the shim was too simplistic and only supported direct
unknown values. Unknown values with refinements can also appear nested
inside known container values such as collections, so the shim needs to
recursively un-refine the entire data structure in that case.

This is still intended only as a temporary fix until we have time to
revisit all of the callers and make them use cty's own logic for
comparison. Using cty's own logic will make the results more precise,
because e.g. it can notice if two unknown strings have different known
prefixes and therefore cannot possibly be equal despite not being fully
known. For now this shim will accept any pair of unknown values of the
same type as equal, regardless of refinement.
2023-06-22 13:16:43 -07:00
.github chore(docs): delete check-legacy-links-format.yml (#33300) 2023-06-01 09:31:06 -05:00
.release [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
docs docs: Describe the plugin protocol encoding of refined unknown values 2023-05-24 13:48:16 -07:00
internal plans/objchange: Support nested unknowns in our unrefinedValue shim 2023-06-22 13:16:43 -07:00
scripts [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
testing/equivalence-tests [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
tools [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
version Update main branch version to 1.6.0 2023-05-15 10:37:27 -04:00
website Reinstate the accidentally deleted experimental testing page (#33413) 2023-06-22 16:01:18 +02:00
.copywrite.hcl Configure copywrite to ignore more generated code 2023-04-26 16:47:54 -04:00
.gitignore Fix .gitignore terraform entry to be root-relative 2022-05-05 10:24:38 -04:00
.go-version Build with Go 1.20.4 2023-05-31 08:37:34 -07:00
.tfdev Remove revision from version command 2021-01-12 16:35:30 -05:00
BUGPROCESS.md Update BUGPROCESS.md 2023-03-18 17:14:20 -04:00
CHANGELOG.md Update CHANGELOG.md 2023-06-19 11:18:05 +01:00
checkpoint.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
codecov.yml [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
CODEOWNERS Update codeowner of gcs backend to include Strategic Integrations team (#31848) 2022-09-27 21:38:52 +01:00
commands.go Remove old implementation of terraform test command 2023-06-12 11:17:42 +02:00
copyright_headers.go build: Generate copyright headers automatically 2023-05-30 08:21:40 -07:00
Dockerfile [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
experiments.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
go.mod Merge pull request #33336 from hashicorp/TF-7056-uploading-state-directly-to-hosted-state-upload-url-when-available 2023-06-22 11:11:00 -06:00
go.sum Run go mod tidy 2023-06-22 11:14:21 -06:00
help.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
LICENSE [COMPLIANCE] Update MPL 2.0 LICENSE 2022-10-12 17:36:01 +00:00
main_test.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
main.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
Makefile chore: Update Digital Team Files (#32037) 2022-10-20 14:04:57 -04:00
plugins.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
provider_source.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
README.md Update README.md 2022-06-27 15:40:37 -04:00
signal_unix.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
signal_windows.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
tools.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
version.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
working_dir.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00

Terraform

Terraform

Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers as well as custom in-house solutions.

The key features of Terraform are:

  • Infrastructure as Code: Infrastructure is described using a high-level configuration syntax. This allows a blueprint of your datacenter to be versioned and treated as you would any other code. Additionally, infrastructure can be shared and re-used.

  • Execution Plans: Terraform has a "planning" step where it generates an execution plan. The execution plan shows what Terraform will do when you call apply. This lets you avoid any surprises when Terraform manipulates infrastructure.

  • Resource Graph: Terraform builds a graph of all your resources, and parallelizes the creation and modification of any non-dependent resources. Because of this, Terraform builds infrastructure as efficiently as possible, and operators get insight into dependencies in their infrastructure.

  • Change Automation: Complex changesets can be applied to your infrastructure with minimal human interaction. With the previously mentioned execution plan and resource graph, you know exactly what Terraform will change and in what order, avoiding many possible human errors.

For more information, refer to the What is Terraform? page on the Terraform website.

Getting Started & Documentation

Documentation is available on the Terraform website:

If you're new to Terraform and want to get started creating infrastructure, please check out our Getting Started guides on HashiCorp's learning platform. There are also additional guides to continue your learning.

Show off your Terraform knowledge by passing a certification exam. Visit the certification page for information about exams and find study materials on HashiCorp's learning platform.

Developing Terraform

This repository contains only Terraform core, which includes the command line interface and the main graph engine. Providers are implemented as plugins, and Terraform can automatically download providers that are published on the Terraform Registry. HashiCorp develops some providers, and others are developed by other organizations. For more information, see Extending Terraform.

License

Mozilla Public License v2.0