Sorry I forgot about the root vs non-root modules, ignore my previous answer.
tells the CLI path autodetect function to use all directories (i.e. root and non-root modules) with valid project files, down to a max depth of 10 directories. By default Infracost will try to autodetect only root Terraform modules. Setting this to true includes subdirectories that we detect as modules instead of only root modules.
(I’ll keep iterating on the docs…)