updating modules
This commit is contained in:
@@ -17,7 +17,7 @@ resource "azurerm_container_app" "container_app_app" {
|
|||||||
dynamic "init_container" {
|
dynamic "init_container" {
|
||||||
for_each = var.init_containers != null ? var.init_containers : []
|
for_each = var.init_containers != null ? var.init_containers : []
|
||||||
content {
|
content {
|
||||||
command = container.value["command"] != null ? container.value["command"] : []
|
command = container.value["command"] != null ? container.value["command"] : ""
|
||||||
cpu = init_container.value["cpu"]
|
cpu = init_container.value["cpu"]
|
||||||
image = container.value["image"]
|
image = container.value["image"]
|
||||||
memory = init_container.value["memory"]
|
memory = init_container.value["memory"]
|
||||||
@@ -28,7 +28,7 @@ resource "azurerm_container_app" "container_app_app" {
|
|||||||
dynamic "container" {
|
dynamic "container" {
|
||||||
for_each = var.containers
|
for_each = var.containers
|
||||||
content {
|
content {
|
||||||
command = container.value["command"] != null ? container.value["command"] : []
|
command = container.value["command"] != null ? container.value["command"] : ""
|
||||||
cpu = container.value["cpu"]
|
cpu = container.value["cpu"]
|
||||||
image = container.value["image"]
|
image = container.value["image"]
|
||||||
memory = container.value["memory"]
|
memory = container.value["memory"]
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ variable "containers" {
|
|||||||
type = list(object({
|
type = list(object({
|
||||||
command = optional(string)
|
command = optional(string)
|
||||||
cpu = optional(string)
|
cpu = optional(string)
|
||||||
env = optional(list(object({
|
envs = optional(list(object({
|
||||||
name = string
|
name = string
|
||||||
secret_name = optional(string)
|
secret_name = optional(string)
|
||||||
value = optional(string)
|
value = optional(string)
|
||||||
|
|||||||
Reference in New Issue
Block a user