Docs
Common Use Cases
Custom Workflows
Terraform Modules Directory Dependency

Terraform Modules Directory Dependency

Create a source modules directory dependency that triggers an operation for another directory.

dirs:
  modules:
    when_modified:
      file_patterns: []
  ec2:
    when_modified:
      file_patterns: ["ec2/*.tf", "modules"]