diff --git a/runatlantis.io/docs/repo-level-atlantis-yaml.md b/runatlantis.io/docs/repo-level-atlantis-yaml.md index 482d5b8129..ab1521a428 100644 --- a/runatlantis.io/docs/repo-level-atlantis-yaml.md +++ b/runatlantis.io/docs/repo-level-atlantis-yaml.md @@ -92,7 +92,7 @@ grep -P 'backend[\s]+"s3"' **/*.tf | sort | uniq | while read d; do \ - echo '[ {"dir": "'"$d"'", "autoplan": {"when_modified": ["**/*.tf.*"] }} ]' | yq -PM; \ + echo '[ {"name": "'"$d"'","dir": "'"$d"'", "autoplan": {"when_modified": ["**/*.tf.*"] }} ]' | yq -PM; \ done ``` diff --git a/runatlantis.io/docs/server-configuration.md b/runatlantis.io/docs/server-configuration.md index 0104071dd5..204c98f044 100644 --- a/runatlantis.io/docs/server-configuration.md +++ b/runatlantis.io/docs/server-configuration.md @@ -372,9 +372,9 @@ and set `--autoplan-modules` to `false`. # or ATLANTIS_ENABLE_REGEXP_CMD=true ``` - Enable Atlantis to use regular expressions on plan/apply commands when `-p` flag is passed with it. + Enable Atlantis to use regular expressions to run plan/apply commands against defined project names when `-p` flag is passed with it. - This can be used to run all defined projects in `atlantis.yaml` using `atlantis plan -p .*`. + This can be used to run all defined projects (with the `name` key) in `atlantis.yaml` using `atlantis plan -p .*`. This will not work with `-d` yet and to use `-p` the repo projects must be defined in the repo `atlantis.yaml` file.