Skip to content

digger does not pick up dependencies of terragrunt when specified in locals #2250

@motatoes

Description

@motatoes

when there is:

locals {
  project_vars = read_terragrunt_config(find_in_parent_folders("region.hcl"))
  staff_vars   = read_terragrunt_config(find_in_parent_folders("data/staff.hcl"))
}

It is not picked up by default. However it works when added to extra_digger_dependencies block:

locals {
  extra_digger_dependencies = [
    find_in_parent_folders("region.hcl"),
    find_in_parent_folders("data/staff.hcl")
  ]
  project_vars = read_terragrunt_config(find_in_parent_folders("region.hcl"))
  staff_vars   = read_terragrunt_config(find_in_parent_folders("data/staff.hcl"))
}

This is very not ideal for users to remmber to add it in two places. Proposal is to make this work out of the box if possible

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions