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

Add support for OpenTofu v1.6 #165

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: [email protected]
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
Loading