Skip to content

Commit

Permalink
docs: Mention --enable-regexp-cmd requires the project name key (#…
Browse files Browse the repository at this point in the history
…2796)

* docs: mention the name key for regexp cmd

* docs: add name key to auto-generation
  • Loading branch information
nitrocode authored Dec 15, 2022
1 parent 812db63 commit 585ce1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runatlantis.io/docs/repo-level-atlantis-yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
4 changes: 2 additions & 2 deletions runatlantis.io/docs/server-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 585ce1e

Please sign in to comment.