opentofu/website
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
..
data Functions: decode_tfvars, encode_tfvars, encode_expr on bult-in provider for compatibility (#2306) 2024-12-25 13:21:59 +04:00
docs website: S3 backend documentation recommends "aws login" 2026-02-13 08:32:44 -08:00
.eslintrc.js Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
docker-compose.build-non-main.yml [main] Fixes for GH workflows for older OpenTofu versions (#3485) 2025-11-11 11:12:20 +02:00
docker-compose.build.yml Fixing website build after versioned docs upgrade (#1553) 2024-04-25 14:11:45 +02:00
docker-compose.yml Fixing website build after versioned docs upgrade (#1553) 2024-04-25 14:11:45 +02:00
Dockerfile Shallow clone of website/submodules for testing (#2249) 2024-12-04 12:24:41 -05:00
package-lock.json Bump cross-spawn from 7.0.3 to 7.0.6 in /website (#2185) 2024-11-19 18:44:34 +01:00
package.json Rename website to OpenTofu (#516) 2023-09-21 10:57:47 +01:00
README.md docs: add dev version step for local docs (#2886) 2025-06-10 10:27:23 -04:00

OpenTofu Documentation

This directory contains the portions of the OpenTofu website that pertain to the core functionality, excluding providers and the overall configuration.

Development server

You can start a local development server with Docker by running the following command from this (the website) directory:

docker compose up --build

The development server will be available on http://localhost:3000/docs/main/ .

Under Docs in the navigation bar, select Development version to see local changes.

Suggesting Changes

You can submit an issue with documentation requests or submit a pull request with suggested changes.

Click Edit this page at the bottom of any OpenTofu website page to go directly to the associated markdown file in GitHub.

Modifying Sidebar Navigation

You must update the sidebar navigation when you add or delete documentation .mdx files. If you do not update the navigation, the website deploy preview fails.

To update the sidebar navigation, you must edit the appropriate nav-data.json file. This repository contains the sidebar navigation files for the following documentation sets:

Previewing Changes

Currently, you can preview your changes through the opentofu/opentofu.org repository.

Follow the Getting Started guide.

In order to not include copyright headers for code examples used in docs, please, add the files under examples folder. This way, it will be ignored on automated copyright headers check.