Commit Graph

2584 Commits

Author SHA1 Message Date
ogormans-deptstack
6a09262c97 local-exec: propagate TRACEPARENT to child processes
This allows child processes launched with local-exec to contribute to the same trace that OpenTofu started.

Signed-off-by: ogormans-deptstack <sean.ogorman@deptagency.com>
2026-04-15 13:40:31 -07:00
Diógenes Fernandes
2c7cd8546c fix: showSensitive working for provisioners output (#3931)
Signed-off-by: Diogenes Fernandes <diofeher@gmail.com>
2026-04-15 09:39:53 -03:00
Christian Mesh
f4a7c80b0a Clarify PG backend documentation examples
Remove example of bad practices and focus on Env vars instead.

Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2026-04-14 06:28:30 -04:00
Larry Bordowitz
5c0cbf828d remove powershell warning in docs
Signed-off-by: Larry Bordowitz <laurence.bordowitz@gmail.com>
2026-04-07 13:46:47 -05:00
Legin
032ec9e542 Add support for Customer Provided Keys and Customer managed keys in AzureRM backend (#3886)
Signed-off-by: Legin-ML <leginml2004@gmail.com>
Signed-off-by: Legin <140829993+Legin-ML@users.noreply.github.com>
2026-04-07 11:11:17 -05:00
Christian Mesh
505f87900a Deprecated resource blocks attrs (#3973)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
Co-authored-by: Martin Atkins <mart@degeneration.co.uk>
Co-authored-by: Andrei Ciobanu <andreic9203@gmail.com>
Co-authored-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2026-04-07 10:30:43 -04:00
Christian Mesh
8a7ba57fef Missed port of: Added OTel docs (#2942) (#3989)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: James Humphries <James@james-humphries.co.uk>
2026-04-03 11:01:10 -04:00
Christian Mesh
55ef1669b2 Support const variables in static eval (#3946)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Martin Atkins <mart@degeneration.co.uk>
2026-04-02 07:39:54 -04:00
James Humphries
c88018bac0 Add resource identity schemas to tofu provider schemas output (#3898)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
2026-04-01 15:50:12 +01:00
Andrei Ciobanu
440edcd754 Deny ephemeral values in count (#3924)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2026-03-27 20:24:15 +02:00
Xuan Long Huang
1324f8a06c docs(plan): reference plan encryption in -out option (#3693) (#3953)
Signed-off-by: Xuan Long Huang <j0918023423@gmail.com>
2026-03-27 15:13:54 +02:00
Andrei Ciobanu
866b067c0d Unify patterns across the refactored commands (#3941)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2026-03-26 17:19:27 +02:00
James Humphries
cdca26fa4e Added deprecation notice for winrm provisioner connections (#3899)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
Co-authored-by: Martin Atkins <mart@degeneration.co.uk>
2026-03-26 07:15:24 -04:00
Andrei Ciobanu
44bef1e3f7 Update the documentation of modules (#3863)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2026-03-23 12:49:34 +02:00
RameshXT
3dd19b1908 docs: add Directory Scanning Behavior section to tofu fmt (#3882)
Signed-off-by: ramesh <ramesh@gmail.com>
Co-authored-by: ramesh <ramesh@gmail.com>
2026-03-23 09:52:45 +01:00
Martin Atkins
6de74668d5 website: New compatibility promises for "Supported Platforms"
We inherited this "compatibility promises" document from our predecessor
as part of the fork, but have now come to realize that the specific set of
platforms it committed to support had become quite stale over time: macOS
support for x64 is phasing out in favor of Apple Silicon, and 32-bit CPU
architectures are no longer commonly used.

In preparation for some anticipated future changes to platform support,
this revises the "Supported Platforms" section of our compatibility
promises so that it no longer commits to any specific platforms and instead
documents that we intend to provide two minor release period's worth of
advance notice for removing support for any platform that is currently
supported. This is a more sustainable compromise that will allow us to
respond to ongoing changes in which platforms are commonly used in our
community, and which platforms are supported well by the dependencies that
OpenTofu relies on.

This also proactively switches from listing darwin_amd64 to darwin_arm64
and removes the commitment to support linux_arm. We do not intend to
immediately stop testing on and building for those two platforms, but we
do expect to phasing them out under the revised version of this policy
in future releases and so this update serves as part of our initial
communication about that future change.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2026-03-20 07:50:31 -07:00
Christian Mesh
0832642188 tofu providers mirror: Add option to trust hashes from a mirror source (#3885)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: James Humphries <James@james-humphries.co.uk>
Co-authored-by: Martin Atkins <mart@degeneration.co.uk>
2026-03-19 14:00:51 -04:00
Martin Atkins
5b67329bff website: Documentation for "language" blocks
This repurposes the page that was previously about "terraform" blocks to
now be about "language" blocks instead.

This is the modern way to describe version compatibility constraints for
OpenTofu, though we retain some support for required_versions in
"terraform" blocks as a transitional aid for those who want to write
modules that can work with older versions of OpenTofu.

There were previously additional sections on this page discussing other
settings that can appear in "terraform" blocks, but they were essentially
just links to more detailed documentation elsewhere and so this reduces
all of that to just a single section that acknowledges that this block
type accepts other options and links to the relevant documentation for
each one. This structure matches the reality that "terraform" blocks are
just a dumping ground for a variety of tangentially-related settings, and
that we're intending to gradually replace all of the settings in there
with brand-agnostic alternatives in future releases.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2026-03-18 09:09:50 -07:00
Alex St John
285bedc26e Multi config migration (#3677)
Signed-off-by: Alex St John <alexandros.georgakoudi@gmail.com>
Signed-off-by: Alex St John <33961662+AlexSTJO@users.noreply.github.com>
Co-authored-by: Andrei Ciobanu <andreic9203@gmail.com>
2026-03-17 15:11:44 +00:00
RameshXT
9eb2083c35 docs: add warning callout for TF_PLUGIN_CACHE_DIR conflict with mirror dirs (#3881)
Signed-off-by: Ramesh XT <rameshkanna841@gmail.com>
Signed-off-by: RameshXT <143485526+RameshXT@users.noreply.github.com>
2026-03-17 09:52:30 +02:00
Christian Mesh
06bff7f3a3 Utilize new registry platform metadata (#3868)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Martin Atkins <mart@degeneration.co.uk>
2026-03-13 06:58:11 -04:00
Philipp Bandow
abb51ad21b backend auth: azurerm: add Azure DevOps/Pipelines OIDC auth (#3820)
Signed-off-by: Philipp Bandow <git@bandow.dev>
2026-03-09 12:01:21 -05:00
James Humphries
02bdadb0e5 Add limitation note to docs around command=plan run values in tofu test (#3824)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
2026-03-04 12:35:49 +00:00
James Humphries
7e227a4d0f Added documentation to discuss acceptance testing providers with ephemeral resources and opentofu (#3782)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
2026-02-24 10:59:53 +00:00
Martin Atkins
eab6920d7e website: S3 backend documentation recommends "aws login"
The recent addition of "aws login" to AWS CLI finally gives a user-friendly
best practice way to acquire AWS credentials for use in interactive
workflows. Combined with the pre-existing support for authenticating using
JSON web tokens (by "web identity", as AWS calls it), there's no longer any
good reason for most users of this backend to explicitly configure AWS
credentials.

Now that OpenTofu itself supports using credentials issued by "aws login",
this reorganizes our documentation to begin with opinionated
recommendations for how to provide credentials for the S3 backend in both
interactive and non-interactive settings, and explicitly documents the
inline static configuration settings as an absolute last resort not
recommended in any cases.

This new documentation also includes links to the relevant parts of the
AWS CLI documentation, since there's a lot of extra detail there which may
be useful for someone trying to debug why their setup isn't working.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2026-02-13 08:32:44 -08:00
James Humphries
129a33c445 docs: clarify that uuid() function does not produce RFC 4122 compliant v4 uuids (#3763)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
2026-02-13 09:09:31 +00:00
Andrei Ciobanu
b108d3fb53 Add universe_domain to the gcs backend (#3758)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2026-02-12 11:46:18 +00:00
Andrei Ciobanu
67d602eb17 Add -show-sensitive to the commands docs (#3720)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2026-02-03 14:55:22 +02:00
Andrei Ciobanu
d24b85fc68 Typo fix in the pg backend. Fix for #3700 (#3704)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2026-01-27 13:22:40 +02:00
Andrei Ciobanu
8e808f3cc2 Make it clear for the external key providers when it needs to generate decryption key (#3672)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2026-01-27 12:20:23 +02:00
Andrei Ciobanu
c7f46c713a Enhance the documentation and the integration tests for the pg backend (#3700)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2026-01-27 10:17:07 +02:00
Christian Mesh
6280691025 Support dual output streams in most commands (#3606)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Diógenes Fernandes <diofeher@gmail.com>
2026-01-20 14:08:10 -05:00
Andrei Ciobanu
66983273e5 Key provider decoding moved from gohcl to hcl/v2 (#3654)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
Co-authored-by: Christian Mesh <christianmesh1@gmail.com>
2026-01-15 17:51:16 +02:00
Andrei Ciobanu
6b3119c5c7 [main] Port the changes done in v1.10 for migration and installation guides (#3656)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2026-01-12 08:08:52 -05:00
Martin Atkins
65ee51c736 website: Boolean operator short-circuit was added in OpenTofu v1.10 (#3645)
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2026-01-07 15:58:18 +00:00
Ilia Gogotchuri
1eacb9a046 Retaining resources during destruction - New flag -suppress-forget-errors (#3588)
Signed-off-by: Ilia Gogotchuri <ilia.gogotchuri0@gmail.com>
2025-12-16 15:41:03 +04:00
H.K.
88c59b6b25 Update JSON syntax documentation for variables in module & terraform blocks (#3587)
Signed-off-by: H.K. <angivare-contact@yahoo.fr>
2025-12-15 07:54:55 -05:00
James Humphries
da2da475a0 Improve documentation around enabled meta-argument (#3576)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
2025-12-11 10:37:16 +00:00
James Humphries
f559cdd1bf Small tweaks to ephemeral variable documentation (#3577)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
2025-12-11 10:37:11 +00:00
Andrei Ciobanu
1907ce104c Update index to mention the new version (#3556)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2025-12-09 18:05:48 +02:00
Ilia Gogotchuri
fd19a3763f Retain resource instances with a new lifecycle argument - destroy (#3409)
Signed-off-by: Ilia Gogotchuri <ilia.gogotchuri0@gmail.com>
Co-authored-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2025-12-04 18:49:57 +04:00
Martin Atkins
82fdad27fc website: "tofu providers schema" nested_type docs
At some point after this documentation was originally written the schema
structure grew to include the possibility of structural attribute types,
represented using "nested_type" instead of "type" in the attribute
definition, but it seems that the documentation was not updated to mention
that.

This is just a minimal extra note about that focused mainly on just
acknowledging that this possibility exists at all, in case anyone is
relying on these docs to build something to parse this format. It would
probably be helpful to expand both this and the existing documentation to
specify the format more precisely, but my focus here is just on quickly
filling in this missing piece so that the documentation is complete, even
if not detailed and precise.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-11-19 07:20:49 -08:00
Andrei Ciobanu
c29cd93f21 [main] Fixes for GH workflows for older OpenTofu versions (#3485)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2025-11-11 11:12:20 +02:00
Martin Atkins
e389a7f2fa website: Warn about "tofu output -raw" in a terminal
By design the "-raw" option to "tofu output" writes the literal output
value directly to stdout without any quoting or escaping, and so it's
risky to use it with an output value that could be controlled by an
attacker when stdout is a terminal.

This risk is inherent in the purpose of this option and is part of the
reason why this is not the default behavior (OpenTofu returns a quoted
representation of an output string by default) so here we just make that
risk explicit in the documentation, in the hope that operators will use
this operation mindfully.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-11-10 09:49:35 -08:00
nemobis
6d0d9b8773 docs: Fix typo in sensitive.mdx (#3431)
Signed-off-by: nemobis <federico.leva@relexsolutions.com>
2025-10-30 15:11:44 -05:00
Andrei Ciobanu
ab51186a30 Add examples on how to use 'state_tags' and 'lock_tags' (#3437)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2025-10-29 11:23:59 +02:00
Martin Atkins
68fbe8d8d7 website: "element" function supports negative indices
We got this new functionality from an upgrade of the upstream cty library,
but we didn't update the docs to mention it.

The examples in this doc were also evidently generated with a much older
version of OpenTofu's predecessor, because the illustrated output was not
shown as a quoted string. The example output now matches how the current
version of "tofu console" would describe these results.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-10-28 15:11:26 -07:00
Andrei Ciobanu
934be4ad5e Glossary - initial version (#3411)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2025-10-28 11:41:31 +02:00
Christian Mesh
f161c7cc27 Update what's new page for 1.11 (#3425)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-10-23 11:32:36 -04:00
James Humphries
9eaba0d83d No longer mention that deprecation of module variables and outputs is experimental (#3417)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
2025-10-23 14:48:10 +01:00