-
-
Notifications
You must be signed in to change notification settings - Fork 986
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
Native Terraform/OpenTofu function templatestring() does not work in Terragrunt as a builtin function. #3242
Comments
@levkohimins would be wonderful to get it supported in Terragrunt. Do you have an estimation? |
Hey @begemotik , this is a good request, but not a priority right now. Could you provide any reasons why this should be prioritized higher? I imagine most folks needing this functionality would simply use |
Is it possible to update the documentation if going forward Terragrunt doesn't plan to support all built in Opentofu/Terraform functions. Can lead to a little confusion https://terragrunt.gruntwork.io/docs/reference/built-in-functions/#opentofuterraform-built-in-functions |
Sure thing, I can update that. To be clear, we're not refusing to support this, we're just trying to prioritize effectively. If there's a use-case that requires this behavior, we can look at prioritizing it. |
We manage multiple ASGs within one TF state and need to be able to re-use one config template for different cases. We haven't tried
|
Describe the bug
A new function templatestring() was added in Terraform 1.9 and Opentofu 1.7. This New function does not work when attempting to use in terragrunt as a built-in function https://terragrunt.gruntwork.io/docs/reference/built-in-functions/#terraform-built-in-functions, both when using the Terraform binary and the OpenTofu binary.
Steps To Reproduce
Define locals block that uses function templatestring().
example/terragrunt.hcl:
example/main.tf:
Expected behavior
Here is the expected behaviour
Here is the actual behaviour
Versions
Additional context
Function works properly when defined directly in .tf file using opentofu/terraform
example/main.tf:
The text was updated successfully, but these errors were encountered: