Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform 1.10 Support Missing #850

Open
joshAtRula opened this issue Dec 12, 2024 · 1 comment
Open

Terraform 1.10 Support Missing #850

joshAtRula opened this issue Dec 12, 2024 · 1 comment
Assignees
Labels
bug 🐛 An issue with the system

Comments

@joshAtRula
Copy link
Contributor

Describe the Bug

Terraform 1.10 dropped support for several legacy backend configuration options related to role assumption see the release notes. The new format, when using role assumption, has the values as nested within an assume_role block, which Atmos does not produce.

Expected Behavior

Atmos is able to properly support Terraform 1.10 and the underlying changes to s3 backend

Steps to Reproduce

Start with any atmos stack, running any terraform version 1.9.x or older.

  1. deploy a resource using 1.9.x
  2. Upgrade terraform to 1.10.x
  3. Attempt to run atmos commands using this TF version.

Atmos will consistently produce an error stating the backend has changed and will not automatically reconfigure or re-init:

template: all-atmos-sections:452:52: executing "all-atmos-sections" at <atmos.Component>: error calling Component: exit status 1

Error: Backend configuration changed

A change in the backend configuration has been detected, which may require
migrating existing state.

If you wish to attempt automatic migration of the state, use "terraform init
-migrate-state".
If you wish to store the current configuration with no changes to the state,
use "terraform init -reconfigure".

Screenshots

No response

Environment

OS: Any (but I'm running Darwin 15.1)
Atmos Version: Latest (1.123.0)

Additional Context

This will likely require that Atmos drops support for older versions of Terraform (hashicorp/terraform#35721) and may have other implications for OpenTofu (I don't use it, so I can't begin to guess)

@joshAtRula joshAtRula added the bug 🐛 An issue with the system label Dec 12, 2024
@osterman
Copy link
Member

The backend configuration is a freeform map that gets JSON serialized (e.g. .hcl.json).

Have you tried to drop any fields that are unsupported and add what you need?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

2 participants