From b65e1348d84b39ad3c070b3b0b3362f3a590995e Mon Sep 17 00:00:00 2001 From: PePe Amengual Date: Tue, 17 Jan 2023 10:43:59 -0800 Subject: [PATCH 1/2] Adding clarification to regexcmp flag --- runatlantis.io/docs/server-configuration.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runatlantis.io/docs/server-configuration.md b/runatlantis.io/docs/server-configuration.md index 3b97968a51..d7ee83aaeb 100644 --- a/runatlantis.io/docs/server-configuration.md +++ b/runatlantis.io/docs/server-configuration.md @@ -394,6 +394,8 @@ and set `--autoplan-modules` to `false`. 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 (with the `name` key) in `atlantis.yaml` using `atlantis plan -p .*`. + + This flag works in conjunction with [allowed_regexp_prefixes](https://www.runatlantis.io/docs/repo-level-atlantis-yaml.html#reference) in the `atlantis.yaml` file, if defined, will only allow the regexes listed in the `allowed_regexp_prefixes`. By Default if not defined in the `atlantis.yaml` file it will default to `[]` which will allow any regex. This will not work with `-d` yet and to use `-p` the repo projects must be defined in the repo `atlantis.yaml` file. From d65459c5c9c6073463575cd9e460f61efb15adac Mon Sep 17 00:00:00 2001 From: nitrocode <7775707+nitrocode@users.noreply.github.com> Date: Tue, 17 Jan 2023 22:46:00 -0600 Subject: [PATCH 2/2] Update runatlantis.io/docs/server-configuration.md --- runatlantis.io/docs/server-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runatlantis.io/docs/server-configuration.md b/runatlantis.io/docs/server-configuration.md index d7ee83aaeb..f139851b5b 100644 --- a/runatlantis.io/docs/server-configuration.md +++ b/runatlantis.io/docs/server-configuration.md @@ -395,7 +395,7 @@ and set `--autoplan-modules` to `false`. This can be used to run all defined projects (with the `name` key) in `atlantis.yaml` using `atlantis plan -p .*`. - This flag works in conjunction with [allowed_regexp_prefixes](https://www.runatlantis.io/docs/repo-level-atlantis-yaml.html#reference) in the `atlantis.yaml` file, if defined, will only allow the regexes listed in the `allowed_regexp_prefixes`. By Default if not defined in the `atlantis.yaml` file it will default to `[]` which will allow any regex. + The flag will only allow the regexes listed in the [`allowed_regexp_prefixes`](https://www.runatlantis.io/docs/repo-level-atlantis-yaml.html#reference) key defined in the repo `atlantis.yaml` file. If the key is undefined, its value defaults to `[]` which will allow any regex. This will not work with `-d` yet and to use `-p` the repo projects must be defined in the repo `atlantis.yaml` file.