Closed truszkowski closed 5 months ago
Some interesting overlap here with the issue I opened recently, https://github.com/spacelift-io/terraform-provider-spacelift/issues/540
When I changing TERRAFORM_FOSS
-> OPEN_TOFU
:
And it works but produces a warning:
I've tried to convince Terraform to ignore/handle that but it didn't work.
I've tried to convince Terraform to ignore/handle that but it didn't work.
I thought CustomizeDiff
should help, but no. At the stack level, I can't:
I could SetNewComputed("terragrunt")
but then showed the plan is more misleading
So, I'll keep it as is:
If we turn on warnings (TF_LOG=warn
), we can see the provider silently replaced terraform_version
:
I've also fixed tests ("terraform-default-" prefix).
Will it make sense to extend this PR to also fix #547 ? Looks like it's almost the same issue, just with plain Terraform.
@truszkowski we merged a fix to the unit tests, can you rebase this? 🙏
Will it make sense to extend this PR to also fix #547 ? Looks like it's almost the same issue, just with plain Terraform.
I've made it. So, now, we'll reset terraform_version
(if not specified) during terraform_workflow_tool
change.
Description of the change
Let's reset the version when we're changing the terragrunt tool.
Step 1 - now we have computed the latest for terraform (1.5.7)
Step 2 - we expect the latest for opentofu (1.7.1)
Let's reset
terraform_version
when we're changingtool
andterraform_version
is not specified in the config.Let's also take care of
terraform_workflow_tool
. It's the same situation. We should resetterraform_version
in the case of the tool change.into:
Type of change
Related issues
Checklists
Development
false
.)go generate
to make sure the docs are up to dateCode review