OpenTofu - Fork open-source de Terraform (backup)
Find a file
Martin Atkins fdd992cfa7 planning: Build manage resource instance execgraph from planned change
The temporary placeholder code was relying only on the
DesiredResourceInstance object, which was good enough for proving that this
could work at all and had the advantage of being a new-style model with
new-style representations of the provider instance address and the other
resource instances that the desired object depends on.

But that isn't enough information to plan anything other than "create"
changes, so now we'll switch to using plans.ResourceInstanceChange as the
main input to the execgraph building logic, even though for now that means
we need to carry a few other values alongside it to compensate for the
shortcomings of that old model designed for the old language runtime.

So far this doesn't actually change what we do in response to the change
so it still only supports "create" changes. In future commits we'll make
the execGraphBuilder method construct different shapes of graph depending
on which change action was planned.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2026-02-09 07:35:50 -08:00
.github Exclude v1.8 from govulncheck (#3733) 2026-02-05 17:54:44 +02:00
cmd/tofu main: Log about reliance on GODEBUG settings 2025-12-18 12:33:55 -08:00
contributing Remove last remnants of ".go-version" file 2026-01-20 07:50:18 -05:00
docs Remove last remnants of ".go-version" file 2026-01-20 07:50:18 -05:00
internal planning: Build manage resource instance execgraph from planned change 2026-02-09 07:35:50 -08:00
rfc updating comments on how we refer to documents 2026-01-06 11:34:45 -06:00
scripts go.mod: Use the new "tool" directive 2025-10-10 07:06:56 -03:00
testing plan diff: summarize the current -> planned notation 2025-08-26 11:37:44 -07:00
tools Remove last remnants of ".go-version" file 2026-01-20 07:50:18 -05:00
version version: Update which dependencies we consider "interesting" 2025-12-17 12:57:02 -08:00
website Add -show-sensitive to the commands docs (#3720) 2026-02-03 14:55:22 +02:00
.copywrite.hcl ignore any lock file on license header check (#1776) 2024-07-08 15:27:11 +03:00
.devcontainer.json Update .devcontainer.json to Go 1.25.6 (#3719) 2026-02-03 07:28:18 -05:00
.gitattributes fix: internal/getprovider tests on Windows (#3275) 2025-09-16 15:29:31 -03:00
.gitignore Fix linting on Windows (#3457) 2025-12-02 07:11:14 -03:00
.golangci.yml lint: reintroduce ST1012 static check 2026-01-05 11:54:37 -06:00
.goreleaser.yaml More nightly build work, hardcode env vars and remove version (#3138) 2025-08-13 14:33:52 +01:00
.licensei.toml feat: add license checks on dependencies (#310) 2023-09-13 19:10:41 +03:00
.tfdev Rename github.com/placeholderplaceholderplaceholder/opentf to github.com/opentofu/opentofu (#461) 2023-09-20 14:35:35 +03:00
CHANGELOG.md azurerm: add client ID to MSI auth 2026-01-28 11:22:18 -06:00
CHARTER.md Updated references and moved governance stuff to a new repo opentofu/org (#2953) 2025-06-25 10:50:10 -07:00
CODE_OF_CONDUCT.md Update core team email. (#752) 2023-10-19 12:03:39 +02:00
codecov.yml Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
CODEOWNERS update CODEOWNERS to match the new governance chart (#2959) 2025-06-25 12:47:24 -03:00
CONTRIBUTING.md Update CONTRIBUTING.md - Changing TSC membership (#3053) 2025-07-22 09:25:26 -07:00
CONTRIBUTING.RELEASE.md Add github workflow to run govoulncheck on all branches with supported OpenTofu versions (#2636) 2025-05-14 18:26:22 +03:00
Dockerfile OpenTofu 1.10: Disable usage of ghcr.io image as a base image (#1994) 2025-01-07 10:08:23 -05:00
Dockerfile.minimal Fixes #2356: Minimal base image (#2375) 2025-01-15 13:46:34 +01:00
go.mod Remove last remnants of ".go-version" file 2026-01-20 07:50:18 -05:00
go.sum go.mod: go get golang.org/x/net@v0.49.0 2026-01-16 07:45:30 -08:00
GOVERNANCE.md Updated references and moved governance stuff to a new repo opentofu/org (#2953) 2025-06-25 10:50:10 -07:00
LICENSE Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
MAINTAINERS.md OpenTofu Charter and Governance (#2830) 2025-05-23 08:18:56 -04:00
Makefile Remove last remnants of ".go-version" file 2026-01-20 07:50:18 -05:00
README.md Add nightly build info, clean up README.md (#3744) 2026-02-09 15:34:39 +00:00
RELEASE.md Add nightly build info, clean up README.md (#3744) 2026-02-09 15:34:39 +00:00
SECURITY.md Added Security disclousure policy (#749) 2023-10-19 15:27:59 -07:00
WEEKLY_UPDATES.md Weekly update 2024-10-11 (#2068) 2024-10-11 15:20:00 +02:00

OpenSSF Best Practices

Homepage | Slack | Get Started

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

Getting help and contributing

Tip

For more OpenTofu events, subscribe to the OpenTofu Events Calendar!

Key features

  • 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: OpenTofu has a "planning" step where it generates an execution plan. The execution plan shows what OpenTofu will do when you call apply. This lets you avoid any surprises when OpenTofu manipulates infrastructure.

  • Resource Graph: OpenTofu builds a graph of all your resources, and parallelizes the creation and modification of any non-dependent resources. Because of this, OpenTofu 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 OpenTofu will change and in what order, avoiding many possible human errors.

Nightly Builds

Nightly builds are available for testing the latest changes on main. These are experimental and not intended for production use. Each build is removed after 30 days.

Nightly builds can be found at https://nightlies.opentofu.org/nightlies. For those who want to automate with tooling, https://nightlies.opentofu.org/nightlies/latest.json will be kept up to date with the latest build information.

For more details, see RELEASE.md.

Reporting security vulnerabilities

If you've found a vulnerability or a potential vulnerability in OpenTofu please follow Security Policy. We'll send a confirmation email to acknowledge your report, and we'll send an additional email when we've identified the issue positively or negatively.

If you believe you have found any possible copyright or intellectual property issues, please contact liaison@opentofu.org. We'll send a confirmation email to acknowledge your report.

Registry Access

In an effort to comply with applicable sanctions, we block access from specific countries of origin. For more details, see the Registry Inclusion Policy.

License

Mozilla Public License v2.0