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

Fix the problem that TFMIGRATE_EXEC_PATH=terragrunt raise parse error. #203

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SuperHiroki
Copy link
Contributor

@SuperHiroki SuperHiroki commented Mar 6, 2025

I encountered the problem that TFMIGRATE_EXEC_PATH=terragrunt raised the following parse error.

~/TerraformMy$ (cd envs/messi/aws-ap-northeast-1 && TFMIGRATE_EXEC_PATH=terragrunt tfmigrate plan)
2025/03/06 16:03:41 [INFO] AWS Auth provider used: "EnvProvider"
2025/03/06 16:03:42 [INFO] [runner] unapplied migration files: [20250306145900_rename_test.hcl]
2025/03/06 16:03:42 [INFO] [runner] load migration file: tfmigrate/20250306145900_rename_test.hcl
2025/03/06 16:03:42 [INFO] [migrator] start state migrator plan
failed to parse terraform version: terragrunt version v0.73.11

But README.md said that you can use terragrunt by setting TFMIGRATE_EXEC_PATH=terragrunt.

So I fixed it.

FYI, terragrunt version output is a little bit different from terraform version.

$ terragrunt version
terragrunt version v0.73.11
$ terraform version
Terraform v1.11.0
on linux_amd64

Your version of Terraform is out of date! The latest version
is 1.11.1. You can update by downloading from https://www.terraform.io/downloads.html

@SuperHiroki
Copy link
Contributor Author

I have built the code of this branch and it worked fine!!
I am now using that binary.

@minamijoyo
Copy link
Owner

@SuperHiroki Thank you for reporting the issue!

This appears to be due to the CLI redesign of Terragrunt v0.73.0. I've opened a new issue, #204. Please give your idea on how to use tfmigrate with Terragrunt v0.73.0+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants