Skip to main content

Disable Plan and Apply

The file_patterns configuration is used to determine if a directory has a Terraform change. If a change exists then Terrateam will execute a command against the directory.

In the case of module directories, users typically do not want to run terraform. Typically, module directories do not contain underlying Terraform resources. The code found in module directories are usually used as dependencies for other Terraform directories with underlying Terraform resources.

Setting the file_patterns configuration for a module directory to an empty list [], will instruct Terrateam to not execute Terrateam commands against the directory.

Changes found in the modules directory can still be used to trigger Terrateam commands against other directories that have a dependency on the modules directory.

dirs:
ec2/modules:
when_modified:
file_patterns: []