Skip to content

Commit c38a09f

Browse files
authored
feat: Allow setting of Atlantis log level (#118)
1 parent 04e39b9 commit c38a09f

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ No requirements.
148148
| atlantis\_gitlab\_user\_token | Gitlab token of the user that is running the Atlantis command | `string` | `""` | no |
149149
| atlantis\_gitlab\_user\_token\_ssm\_parameter\_name | Name of SSM parameter to keep atlantis\_gitlab\_user\_token | `string` | `"/atlantis/gitlab/user/token"` | no |
150150
| atlantis\_image | Docker image to run Atlantis with. If not specified, official Atlantis image will be used | `string` | `""` | no |
151+
| atlantis\_log\_level | Log level that Atlantis will run with. Accepted values are: <debug\|info\|warn\|error> | `string` | `"debug"` | no |
151152
| atlantis\_port | Local port Atlantis should be running on. Default value is most likely fine. | `number` | `4141` | no |
152153
| atlantis\_repo\_whitelist | List of allowed repositories Atlantis can be used with | `list(string)` | n/a | yes |
153154
| atlantis\_version | Verion of Atlantis to run. If not specified latest will be used | `string` | `"latest"` | no |

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ locals {
3636
},
3737
{
3838
name = "ATLANTIS_LOG_LEVEL"
39-
value = "debug"
39+
value = var.atlantis_log_level
4040
},
4141
{
4242
name = "ATLANTIS_PORT"

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ variable "allow_repo_config" {
239239
default = "false"
240240
}
241241

242+
variable "atlantis_log_level" {
243+
description = "Log level that Atlantis will run with. Accepted values are: <debug|info|warn|error>"
244+
type = string
245+
default = "debug"
246+
}
247+
242248
# Github
243249
variable "atlantis_github_user" {
244250
description = "GitHub username that is running the Atlantis command"

0 commit comments

Comments
 (0)