OpenTofu lets you declaratively manage your cloud infrastructure.
Go to file
Martin Atkins 4c439b099f plans/objchange: Don't consider refinements when validating plans
Providers that existed prior to refinements (all of them, at the time of
writing) cannot preserve refinements sent in unknown values in the
configuration, and even if one day providers _are_ aware of refinements
there we might add new ones that existing providers don't know how to
handle.

For that reason we'll absolve providers of the responsibility of
preserving refinements from config into plan by fixing some cases where
we were incorrectly using RawEquals to compare values; that function isn't
appropriate for comparing values that might be unknown.

However, to avoid a disruptive change right now this initial fix just
strips off the refinements before comparing. Ideally this should be using
Value.Equals and handling unknown values more explicitly, but we'll save
that for a possible later improvement.

This does not include a similar exception for validating whether a final
value conforms to a plan because the plan value and the final value are
both produced by the same provider and so providers ought to be able to
be consistent with their _own_ treatment of refinements, if any.
Configuration is special because Terraform itself generates that, and so
it can potentially contain refinements that a particular provider has no
awareness of.
2023-05-24 13:48:13 -07:00
.github Update PR template to target 1.5.x by default 2023-05-19 09:42:53 -04:00
.release [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
docs Update README.md 2023-05-02 16:23:40 -07:00
internal plans/objchange: Don't consider refinements when validating plans 2023-05-24 13:48:13 -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 Merge pull request #32539 from cmaritan/patch-1 2023-05-11 18:01:25 -07: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: Use Go 1.20.0 2023-02-17 14:24:52 -08: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 for future 1.6.0 release 2023-05-15 10:39:38 -04: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 [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00: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 go.mod: go get github.com/zclconf/go-cty@v1.3.2 2023-05-24 13:44:03 -07:00
go.sum go.mod: go get github.com/zclconf/go-cty@v1.3.2 2023-05-24 13:44:03 -07: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