Skip to content

Feature | Starting with tf version 1.7 support and migrate from Terraform to OpenTofu  #255

Closed

Description

@diego-ojeda-binbash

Describe the Feature

  • First, do an analysis to fully understand the extent of this change.
  • Secondly, sketch out a small migration plan (which should include at least affected components, implementation steps, validation and testing, documentation updates required, and communication).
  • Finally, proceed with execution of the migration plan.

Activity

  1. exequielrafaela commented on Dec 3, 2024

    @exequielrafaela
    Member

    Starting with Terraform version 1.7, HashiCorp has transitioned its licensing to the Business Source License (BSL) v1.1. This change imposes specific restrictions on embedding or wrapping Terraform within other tools, particularly those that might compete with HashiCorp's offerings.

    To ensure compliance and maintain the integrity of our operations, we propose the following actions:

    1. Migrate to OpenTofu: Transition from Terraform to OpenTofu, an open-source alternative that aligns with our commitment to open-source principles and avoids the constraints of the BSL.

    2. Update Documentation: Revise all relevant documentation to reflect the migration to OpenTofu, ensuring clarity and accuracy for all users.

    3. Notify Clients: Inform our clients about this transition, providing them with detailed information on the reasons behind the change and how it will benefit their operations.

    By implementing these steps, we aim to uphold our dedication to open-source values while continuing to deliver high-quality services to our clients.

    • Extra Issue: Support terraform again consider:
      Leverage must not embed or wrap Terraform, but can orchestrate and execute any tool (including kubectl , infracost , etc.) and can be used seamlessly in any CI/CD environment.

    Sources

  2. exequielrafaela commented on Dec 16, 2024

    @exequielrafaela
    Member
    • Add conditional to check leverage cli version with leverage-docker-toolbox w/ opentofu
    • Consider 1.13.0 breaking change condition that could help as 1st step.
  3. changed the title [-]Migrate from Terraform to OpenTofu[/-] [+]Feature | Starting with tf version 1.7 support and migrate from Terraform to OpenTofu [/+] on Feb 3, 2025
  4. exequielrafaela commented on Jun 23, 2025

    @exequielrafaela
    Member

    @angelofenoglio @diego-ojeda-binbash @Franr

    Done

    Pending

    1. Tests & CI/CD: Review all tests and CI/CD references to leverage terraform command (@Franr )

    2. Update Documentation: Revise all relevant documentation to reflect the migration to OpenTofu, ensuring clarity and accuracy for all users. Following the order of the list below (@angelofenoglio)

      1. ⚙️ https://github.com/binbashar/leverage (@angelofenoglio we'll review and adjust below links)
      2. ⚙️ https://github.com/binbashar/le-ref-architecture-doc
        1. Terraform support: Create a new sub-page (small ref here https://leverage.binbash.co/user-guide/leverage-cli/extending-leverage/build.env/#buildenv-file-format) (@angelofenoglio we'll push dockerfile)
      3. ✅ https://github.com/binbashar/le-tf-infra-aws(@angelofenoglio this one can be treated along the terraform dockerfile PR we've discussed).
      4. ⚙️ https://github.com/binbashar/le-tf-infra-aws-template
      5. ⚙️ https://github.com/binbashar/le-devops-workflows (low prio)
    3. Notify Clients: Inform our clients about this transition, providing them with detailed information on the reasons behind the change and how it will benefit their operations.

  5. binbashdevops commented on Aug 4, 2025

    @binbashdevops
    Contributor

    @exequielrafaela we are getting close, but still some updates are required:

    • Doc: final review and fixes
    • CLI: mainly readme
    • Ref Arch: readme
    • DevOps Workflow: could be tackled on a separate ticket? given that it is a private repo and also requires fixes for other issues.
  6. diego-ojeda-binbash commented on Oct 31, 2025

    @diego-ojeda-binbash
    ContributorAuthor

    Re points 2.iii/iv/v, initial PR can be found here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions