atmos icon indicating copy to clipboard operation
atmos copied to clipboard

Docs on how to use atmos with opentofu

Open nitrocode opened this issue 1 year ago • 2 comments

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

nitrocode avatar Feb 22 '24 05:02 nitrocode

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.

kvendingoldo avatar Apr 02 '24 22:04 kvendingoldo

@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 avatar May 01 '24 03:05 osterman

@nitrocode please see this doc https://atmos.tools/integrations/opentofu on OpenTofu support

aknysh avatar May 23 '24 03:05 aknysh

Thanks!

nitrocode avatar May 23 '24 04:05 nitrocode