updating modules
This commit is contained in:
@@ -17,20 +17,38 @@ resource "azurerm_container_app" "container_app_app" {
|
||||
dynamic "init_container" {
|
||||
for_each = var.init_containers
|
||||
content {
|
||||
name = init_container.value["name"]
|
||||
image = container.value["image"]
|
||||
cpu = init_container.value["cpu"]
|
||||
image = container.value["image"]
|
||||
memory = init_container.value["memory"]
|
||||
name = init_container.value["name"]
|
||||
}
|
||||
}
|
||||
|
||||
dynamic "container" {
|
||||
for_each = var.containers
|
||||
content {
|
||||
name = container.value["name"]
|
||||
image = container.value["image"]
|
||||
command = container.value["command"]
|
||||
cpu = container.value["cpu"]
|
||||
image = container.value["image"]
|
||||
memory = container.value["memory"]
|
||||
name = container.value["name"]
|
||||
|
||||
dynamic "env" {
|
||||
for_each = container.value["envs"]
|
||||
content {
|
||||
name = env.value["name"]
|
||||
secret_name = env.value["secret_name"]
|
||||
value = env.value["value"]
|
||||
}
|
||||
}
|
||||
|
||||
dynamic "volume_mount" {
|
||||
for_each = container.value["volume_mounts"]
|
||||
content {
|
||||
name = volume_mount.value["name"]
|
||||
path = volumn_mount.value["path"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,13 +3,23 @@ variable "app_subdomain_name" {
|
||||
}
|
||||
|
||||
variable "containers" {
|
||||
type = list(object({
|
||||
name = string
|
||||
image = string
|
||||
cpu = string
|
||||
memory = string
|
||||
}))
|
||||
default = []
|
||||
type = list(object({
|
||||
command = optional(string)
|
||||
cpu = optional(string)
|
||||
env = optional(list(object({
|
||||
name = string
|
||||
secret_name = optional(string)
|
||||
value = optional(string)
|
||||
})))
|
||||
image = string
|
||||
memory = optional(string)
|
||||
name = string
|
||||
volume_mounts = optional(list(object({
|
||||
name = string
|
||||
path = string
|
||||
})))
|
||||
}))
|
||||
}
|
||||
|
||||
variable "container_app_name" {
|
||||
@@ -21,33 +31,16 @@ variable "container_app_environment_id" {
|
||||
}
|
||||
|
||||
variable "custom_domain_count" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "init_containers" {
|
||||
default = []
|
||||
type = list(object({
|
||||
name = string
|
||||
image = string
|
||||
cpu = string
|
||||
memory = string
|
||||
}))
|
||||
}
|
||||
|
||||
variable "registry_password" {
|
||||
sensitive = true
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "registry_username" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "domain_name" {
|
||||
default = 0
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "dns_zone_resource_group" {
|
||||
default = ""
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "domain_name" {
|
||||
type = string
|
||||
}
|
||||
|
||||
@@ -70,6 +63,35 @@ variable "ingress_transport" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "init_containers" {
|
||||
default = []
|
||||
type = list(object({
|
||||
command = optional(string)
|
||||
cpu = optional(string)
|
||||
envs = optional(list(object({
|
||||
name = string
|
||||
secret_name = optional(string)
|
||||
value = optional(string)
|
||||
})))
|
||||
image = string
|
||||
memory = optional(string)
|
||||
name = string
|
||||
volume_mounts = optional(list(object({
|
||||
name = string
|
||||
path = string
|
||||
})))
|
||||
}))
|
||||
}
|
||||
|
||||
variable "registry_password" {
|
||||
sensitive = true
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "registry_username" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "registry_password_secret_name" {
|
||||
default = "docker-io-password"
|
||||
type = string
|
||||
@@ -93,6 +115,7 @@ variable "secrets" {
|
||||
}
|
||||
|
||||
variable "storage_account_primary_connection_string" {
|
||||
default = ""
|
||||
type = string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user