Terragrunt modules detection

If you use Terragrunt run all with PR Plan feature you can use this plugin for running plan only for changed modules in the PR by using this code:

version: 2
deploy:
  steps:
    terraformPlan:
      before:
        - name: Terragrunt Modules Detection
          use: https://github.com/env0/env0-terragrunt-modules-detection-plugin

This will detect which code was changed and based on that will decide which module to run based on the files that were changed as part of the Pull request.

For more information, check out the Modules Detection Plugin Repository