From e1521891e69711cf49f74888f45444c02305685b Mon Sep 17 00:00:00 2001 From: nitrocode <7775707+nitrocode@users.noreply.github.com> Date: Wed, 14 Dec 2022 10:23:50 -0600 Subject: [PATCH 1/2] docs: mention the name key for regexp cmd --- runatlantis.io/docs/server-configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. From 01d5b6d4c2ca33c6fcd1d5fffef1f0238ddc717a Mon Sep 17 00:00:00 2001 From: nitrocode <7775707+nitrocode@users.noreply.github.com> Date: Wed, 14 Dec 2022 10:25:11 -0600 Subject: [PATCH 2/2] docs: add name key to auto-generation --- runatlantis.io/docs/repo-level-atlantis-yaml.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ```