56 lines
769 B
HCL
56 lines
769 B
HCL
variable "application_name" {
|
|
type = string
|
|
}
|
|
|
|
variable "namespace" {
|
|
default = "default"
|
|
type = string
|
|
}
|
|
|
|
variable "image" {
|
|
type = object({
|
|
name = string
|
|
tag = optional(string, "latest")
|
|
pull-policy = optional(string, "Always")
|
|
})
|
|
}
|
|
|
|
variable "args" {
|
|
type = list(string)
|
|
default = null
|
|
}
|
|
|
|
variable "ports" {
|
|
type = list(
|
|
object({
|
|
container_port = number
|
|
expose = optional(bool, false)
|
|
})
|
|
)
|
|
default = []
|
|
}
|
|
|
|
variable "env" {
|
|
type = list(
|
|
object({
|
|
name = string
|
|
value = string
|
|
})
|
|
)
|
|
default = []
|
|
}
|
|
|
|
variable "config_content" {
|
|
type = string
|
|
default = null
|
|
}
|
|
|
|
variable "volumes" {
|
|
type = map(
|
|
object({
|
|
path = string
|
|
})
|
|
)
|
|
default = {}
|
|
}
|