Autoplan & change detection
Plan only what changed.
Autoplan is what makes Atlantis feel automatic: when a PR is opened or updated, Atlantis figures out which projects were affected and plans exactly those, posting a plan per project. The when_modified patterns in atlantis.yaml drive this — a project re-plans when its own files change, and when files it depends on (a shared module) change. Get these patterns right and a PR plans precisely the blast radius of its change, no more.
projects:- name: appdir: live/prod/appautoplan:enabled: truewhen_modified:- "*.tf"- "*.tfvars"- "../../../modules/app/**/*.tf" # re-plan if the shared module changes
Change detection at scale
In a large monorepo, planning everything on every PR is slow and noisy, so accurate change detection is essential — it keeps a one-line change from triggering fifty plans. The when_modified globs are your tuning knob; include the shared code a project genuinely depends on so a module bump re-plans its consumers, but scope them tightly so unrelated changes do not fan out. You can also disable autoplan for a project and require an explicit atlantis plan when appropriate.