diff --git a/main.tf b/main.tf index a6201be..8f6e9de 100644 --- a/main.tf +++ b/main.tf @@ -92,6 +92,8 @@ module "container" { name = key value = value }] + command = var.command + args = var.args # Declare volumes to be mounted. # This is similar to how docker volumes are declared. diff --git a/variables.tf b/variables.tf index 5c864d5..b84be8b 100644 --- a/variables.tf +++ b/variables.tf @@ -65,6 +65,18 @@ variable "image" { default = "ghcr.io/runatlantis/atlantis:latest" } +variable "command" { + type = list(string) + description = "Command to override the container image ENTRYPOINT" + default = null +} + +variable "args" { + type = list(string) + description = "Arguments to override the container image default command (CMD)." + default = null +} + variable "env_vars" { type = map(any) description = "Key-value pairs representing environment variables and their respective values"