OpenTofu lets you declaratively manage your cloud infrastructure.
Go to file
James Bardin dcd762e81d evaluate outputs from state
Outputs were being evaluated from changes, even during apply. Make sure
we update the state correctly, and remove the existing change. This
requires adding more Planning fields to the output nodes to
differentiate whether the output is being planned or applied because the
same type handles both cases. We can evaluate separately whether new
types should be introduced to deal with both cases.

The module node cleanup was also prematurely removing module outputs
from the state before evaluation. This was not noticed before because
the evaluation was always falling back to changes. Have the root module
node do the final cleanup for all its children.

It turns out sensitive was also being handled incorrectly, and only
sensitive from configuration was being considered. Make sure to mark the
output as sensitive when storing sensitive values into state, and OR
sensitive marks with the state config when evaluating the output values.
2022-11-28 16:39:55 -05:00
.github Rollout equivalence testing during Terraform releases and builds (#31928) 2022-11-24 14:00:08 +01:00
.release [RelAPI Onboarding] Add release API metadata file 2022-03-22 11:24:44 -07:00
docs docs: "How Terraform Uses Unicode" should mention HCL too 2022-11-16 15:38:45 -08:00
internal evaluate outputs from state 2022-11-28 16:39:55 -05:00
scripts build: exclude .go-version from imports check (#32141) 2022-11-02 15:49:01 +00:00
testing/equivalence-tests Rollout equivalence testing during Terraform releases and builds (#31928) 2022-11-24 14:00:08 +01:00
tools remove deprecated etcd backend 2022-06-27 15:01:21 -04:00
version Cleanup after v1.4.0-alpha20221109 release 2022-11-09 18:28:01 +00:00
website Merge pull request #31999 from JarrettSpiker/jspiker/workspace-delete-rum-docs 2022-11-25 12:07:02 -05:00
.gitignore Fix .gitignore terraform entry to be root-relative 2022-05-05 10:24:38 -04:00
.go-version Build with Go 1.19.3 2022-11-02 08:56:51 -07:00
.tfdev Remove revision from version command 2021-01-12 16:35:30 -05:00
BUGPROCESS.md Update BUGPROCESS.md 2020-12-10 12:15:39 -05:00
CHANGELOG.md Add CHANGELOG entry for safe delete 2022-11-21 18:06:38 -05:00
checkpoint.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
codecov.yml update to match new default branch name (#27909) 2021-02-24 13:36:47 -05:00
CODEOWNERS Update codeowner of gcs backend to include Strategic Integrations team (#31848) 2022-09-27 21:38:52 +01:00
commands.go Experiments supported only in alpha/dev builds 2022-06-17 14:46:07 -07:00
Dockerfile switch to hashicorp docker mirror 2020-10-29 22:37:11 -04:00
experiments.go build: Use Go 1.19 2022-08-22 10:59:12 -07:00
go.mod Upgrade go-tfe to 1.12.0 2022-11-21 14:54:07 -05:00
go.sum Upgrade go-tfe to 1.12.0 2022-11-21 14:54:07 -05:00
help.go Improve the help.go docs: typo and a more explicit comment. 2022-01-24 10:52:37 +00:00
LICENSE [COMPLIANCE] Update MPL 2.0 LICENSE 2022-10-12 17:36:01 +00:00
main_test.go remove the use of panicwrap 2021-10-28 11:51:39 -04:00
main.go Experiments supported only in alpha/dev builds 2022-06-17 14:46:07 -07:00
Makefile chore: Update Digital Team Files (#32037) 2022-10-20 14:04:57 -04:00
plugins.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
provider_source.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
README.md Update README.md 2022-06-27 15:40:37 -04:00
signal_unix.go Upgrade to Go 1.17 2021-08-17 15:20:05 -07:00
signal_windows.go Upgrade to Go 1.17 2021-08-17 15:20:05 -07:00
tools.go build: GitHub Actions "Quick Checks" workflow 2022-04-04 08:12:44 -07:00
version.go Remove revision from version command 2021-01-12 16:35:30 -05:00
working_dir.go workdir: Start of a new package for working directory state management 2021-09-10 14:56:49 -07: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