terramate-io / terramate

Terramate CLI is an open-source Infrastructure as Code (IaC) Orchestration and Code Generation tool for Terraform, OpenTofu and Terragrunt.
https://terramate.io
Mozilla Public License 2.0
3.12k stars 85 forks source link

[FEATURE] generate_hcl with dynamic name / multiple times #1736

Open efiShtain opened 1 month ago

efiShtain commented 1 month ago

Is your feature request related to a problem? Please describe.

Feature Request

I want to be able to set the output file name of generate_hcl from the caller / importer side I want to be able to reuse generate_hcl multiple times with different files / parameters in the same stack

Solution Example

I would like to be able to set some global that will set the generate_hcl output file name I would also like to be able to use the same generate_hcl multiple times in the same stack with different values (which will be supported if I can set the name dynamically)

Describe alternatives you've considered using tm_dynamic in hcl, but it's not really convenient for me