Skip to content

Stacks: OpenTofu support for type: TERRAFORM (the tofu flag exists but has no runner support) #4020

Description

@jrohde

Would love to be able to run type: TERRAFORM stacks on OpenTofu. The configuration.terraform.tofu flag already exists (and the console correctly generates tofu commands for it), but there's no runner support yet, so enabling it just fails with tofu: executable not found (verified on agent 0.6.56 / console 0.12.35).

What seems to be missing:

  • the Terraform harness image only ships /bin/terraform (no *-tofu-* image flavor is published either);
  • the harness's plan/state post-processing (terraform show -json in the terraform tool) hardcodes the terraform binary, so plan preview wouldn't follow the flag even with a tofu binary present.

The terragrunt harness image already bundles OpenTofu, and the CRD recently gained tofuRegistry, so the direction clearly exists - this is a request to finish the type: TERRAFORM path. Bundling tofu into the existing Terraform image (like the terragrunt one does) and picking the binary per the flag looks like the smallest version.

Not urgent for us - happily on Terraform 1.10 meanwhile - but tofu is where we'd like to end up, and it would be good if the flag either worked or was documented as not-yet-functional.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions