I have my repository set up to support multiple environments using multiple folder and have a single terragrunt.hcl file at the root level. In that file I define the provider constraint to be ~>5.28 using the required_provider block from terraform.
Upon running plan command locally, I notice the .terraform.lock.hcl keep getting updates with with the latest version of the provider from opentofu. I got to learn that terragrunt use opentofu as default if it is available. However, I don't have opentofu installed on my machine. I also set the TERRAGRUNT_TFPATH to point to terraform, but no luck
Here is an example of my lock file
Expected behavior
Expect the lock file to only contains provider from terraform
OR the opentofu version must follow the terraform constraints
Nice to haves
[x] Terminal output from plan command
terragrunt run-all plan --terragrunt-working-dir infrastructures/eu/acc/org-common/cloud-run-service/automated-test-controller
eu-north
Module: /Users/nguyenvo/Desktop/Randstad/DigitalGlue-squad3/transcoder-shared-infrastructures/infrastructures/eu/acc/org-common/cloud-run-service/automated-test-controller
External dependency: /Users/nguyenvo/Desktop/Randstad/DigitalGlue-squad3/transcoder-shared-infrastructures/infrastructures/eu/acc/org-common/service-accounts
Should Terragrunt apply the external dependency? (y/n) n
INFO[0002] The stack at infrastructures/eu/acc/org-common/cloud-run-service/automated-test-controller will be processed in the following order for command plan:
Group 1
Maybe this is not the bug. What I am trying to do is to get opentofu to align with the version constraint. It keeps download the latest version of the provider which sometimes causes our CI pipeline to fail
Describe the bug
I have my repository set up to support multiple environments using multiple folder and have a single terragrunt.hcl file at the root level. In that file I define the provider constraint to be
~>5.28
using the required_provider block from terraform.Upon running plan command locally, I notice the .terraform.lock.hcl keep getting updates with with the latest version of the provider from opentofu. I got to learn that terragrunt use opentofu as default if it is available. However, I don't have opentofu installed on my machine. I also set the TERRAGRUNT_TFPATH to point to terraform, but no luck
Here is an example of my lock file
Expected behavior
Nice to haves
Initializing the backend...
Initializing provider plugins...
Terraform has been successfully initialized!