docs: Mention --enable-regexp-cmd requires the project name key (#2796)

* docs: mention the name key for regexp cmd

* docs: add name key to auto-generation
This commit is contained in:
nitrocode
2022-12-15 15:51:53 -06:00
committed by GitHub
parent 812db63dfd
commit 585ce1e888
2 changed files with 3 additions and 3 deletions

View File

@@ -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
```

View File

@@ -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.