terraform-library/input.tf

61 lines
886 B
Terraform
Raw Normal View History

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 = {}
}
variable "replicas" {
type = number
default = 1
description = "number of replicas for the application's pod"
}