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] Support global tags in stacks #1746

Open efiShtain opened 3 weeks ago

efiShtain commented 3 weeks ago

Is your feature request related to a problem? Please describe. When working with hierarchy of stacks, I would like to automatically add tags to the sub stacks

Describe the solution you'd like

Accounts 
   - Dev
       - StackA
       - StackB
       dev_config.tm.hcl
   - Prod
     prod_config.tm.hcl

and dev_config.tm.hcl has something like this

global_tags {
   tags = [
      "dev"
      "account:xyz"
  ]
}

every stack created under dev stack would merge it's tags with the global tags automatically

it doesn't have to merge them directly to the stack's tags list, so the stack can be moved and duplicated to other hierarchy

but when I use terramate list --tags ... it should take global tags into account

efiShtain commented 6 days ago

Can I work on this one ?

i4ki commented 4 days ago

hey @efiShtain please reach out directly to me in our community Discord and let's talk about it (my username is _i4k there).

efiShtain commented 2 days ago

Pinged you on discord