Trigger on Modules Update
Setup a directory dependency with the following rules:
- Do not automatically plan when the
modules
directory is changed - Automatically plan against the
iam
directory when there is a change in theiam
ormodules
directory
The following configuration creates a modules
directory dependency for the iam
directory:
dirs:
modules:
when_modified:
file_patterns: []
iam:
when_modified:
file_patterns: ["iam/*.tf", "iam/*.tfvars", "modules/*.tf"]