Skip to content

[BUG] tm_hcl_expression() no longer able to be used in lets{} block in 0.17.0 #2354

@benscholler-ciq

Description

@benscholler-ciq

Describe the bug
After updating to version 0.17.0, tm_hcl_expression() is undefined when used within a lets() block.

lets eval: let.providers: eval expression: There is no function named "tm_hcl_expression"

To Reproduce

Steps to reproduce the behavior:
1.

generate_hcl "_tm_gen_providers.tf" {

lets {
    providers = {
      aws = {
        source  = "hashicorp/aws"
        version = "~> 5.0"
        config = {
          default_tags = tm_hcl_expression("local.common_tags")
        }
      }
    }
}
  1. Run terramate generate
  2. See error

Expected behavior
tm_hcl_expression was able to be used before the version change. Is this a regression or expected behavior moving forward?

Environment (please complete the following information):

  • OS: MacOS
  • OS Version: 26.5
  • Git Version: 2.50.1
  • Terramate Version: 0.17.0

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions