Skip to content

Commit

Permalink
Add support for OpenTofu v1.6
Browse files Browse the repository at this point in the history
Most of the work on OpenTofu support has already been done in #164.
The last piece is running CI on the GA version and clarifying in the
description that OpenTofu is supported.
  • Loading branch information
minamijoyo committed Jan 11, 2024
1 parent 5810cd9 commit 7bf092b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
fail-fast: false
matrix:
opentofu:
- 1.6.0-alpha5
- 1.6.0
env:
OPENTOFU_VERSION: ${{ matrix.opentofu }}
TFMIGRATE_EXEC_PATH: tofu
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ brews:
name: "Masayuki Morita"
email: minamijoyo@gmail.com
homepage: https://github.com/minamijoyo/tfmigrate
description: "A Terraform state migration tool for GitOps"
description: "A Terraform / OpenTofu state migration tool for GitOps"
skip_upload: auto
test: |
system "#{bin}/tfmigrate -v"
Expand Down
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![GitHub release](https://img.shields.io/github/release/minamijoyo/tfmigrate.svg)](https://github.com/minamijoyo/tfmigrate/releases/latest)
[![GoDoc](https://godoc.org/github.com/minamijoyo/tfmigrate/tfmigrate?status.svg)](https://godoc.org/github.com/minamijoyo/tfmigrate)

A Terraform state migration tool for GitOps.
A Terraform / OpenTofu state migration tool for GitOps.

## Table of content
<!--ts-->
Expand Down Expand Up @@ -81,9 +81,17 @@ This brings us to a new paradigm, that is to say, Terraform state operation as C

## Requirements

The tfmigrate invokes `terraform` command under the hood. This is because we want to support multiple terraform versions in a stable way.
The tfmigrate invokes `terraform` or `tofu` command under the hood. This is because we want to support multiple Terraform / OpenTofu versions in a stable way.

The minimum requirement is Terraform v0.12 or higher, but we recommend the Terraform v1.x.
### Terraform

The minimum required version is Terraform v0.12 or higher, but we recommend the Terraform v1.x.

### OpenTofu

If you want to use OpenTofu, a community fork of Terraform, you need to set the environment variable `TFMIGRATE_EXEC_PATH` to `tofu`.

The minimum required version is OpenTofu v1.6 or higher.

## Getting Started

Expand Down

0 comments on commit 7bf092b

Please sign in to comment.