Skip to content

Support Terragrunt dependencies between projects #402

Open
@ZIJ

Description

@ZIJ

Raised by Bastien: regarding terragrunt, I think you don't have the concept of dependencies yet. Right now I'm parsing hcl files to generate digger.yml with the correct include_patterns . Is there a way to make sure plan/apply are made in the correct order ?

Igor: indeed no dependencies support yet (...) there are similar concepts in Spacelift and the likes (...)
it looks like there could be somewhat different use cases for dependencies:

  1. the include_patterns workaround solving for project A apply being triggered whenever changes are made to an outside directory, like modules
  2. "soft" dependencies between projects - smth like this: whenever apply for BOTH project A and B are triggered, A always runs before B. Not preventing isolated runs of either A or B though.
  3. "hard" dependencies between projects - whenever apply B is triggered, apply A must run first (even if no changes to A were made)

Bastien: 2 should be enough to support terragrunt dependencies

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions