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

Docs on how to use atmos with opentofu #542

Open
nitrocode opened this issue Feb 22, 2024 · 2 comments · May be fixed by #594
Open

Docs on how to use atmos with opentofu #542

nitrocode opened this issue Feb 22, 2024 · 2 comments · May be fixed by #594
Assignees

Comments

@nitrocode
Copy link
Member

Describe the Feature

Atmos probably supports it since we can override the binary but I cannot find docs on it in the readme, or in atmos.tools

I did see this but it's short and doesn't explain how to use it with opentofu

Expected Behavior

Clear instructions on how to use with opentofu

Use Case

Opentofu usage instead of terraform

Describe Ideal Solution

Instructions

Alternatives Considered

No response

Additional Context

No response

@kvendingoldo
Copy link

At this moment if you need to have a support of Terraform as well as OpenTofu (and Terragrunt :) ) in one tool you can use https://github.com/tofuutils/tenv which my team wrote some months ago. A lot of users switched to that tool to unify version management in the world of Terraform.

You're welcome to open any issues or contribute to tenv.

@osterman
Copy link
Member

osterman commented May 1, 2024

@Gowiem shared their experience here https://masterpoint.io/updates/opentofu-early-adopters/

TL;DR:

Edit atmos.yml and set terraform.command to tofu (or whatever your binary is):

terraform:
  command: tofu

And if using our Spacelift components/integration, then also set the terraform.settings.spacelift.terraform_workflow_tool value to OPEN_TOFU:

terraform:
  settings:
    spacelift:
      terraform_workflow_tool: OPEN_TOFU

@osterman osterman linked a pull request May 3, 2024 that will close this issue
@osterman osterman self-assigned this May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants