diff --git a/main.tf b/main.tf index 8bc011b..e955a0e 100644 --- a/main.tf +++ b/main.tf @@ -91,6 +91,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 819bc13..39df9fe 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"