gruntwork-io / terragrunt

Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu/Terraform to scale.
https://terragrunt.gruntwork.io/
MIT License
8.04k stars 975 forks source link

How to refer to attributes in a lifecycle block? #2783

Closed asztivagyok closed 3 weeks ago

asztivagyok commented 11 months ago

I'm trying to manage an EKS module through Terragrunt. Having this is locals:

...
locals {
  ...
  eks_managed_node_groups = {
    default = {
      desired_size = 1
      lifecycle = {
        ignore_changes = [
          desired_size
        ]
        ...
      }
      ...
    }
...

I get this error: you can only reference other local variables here, but it looks like you're referencing something else (desired_size is not defined). What would be the right approach to make this work?

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for raising this issue.