diff --git a/modules/container_app/container_app.tf b/modules/container_app/container_app.tf index 58f2f9b..fe56ccc 100644 --- a/modules/container_app/container_app.tf +++ b/modules/container_app/container_app.tf @@ -111,7 +111,7 @@ resource "azurerm_container_app" "container_app_app" { } lifecycle { - ignore_changes = [ template[0].container[*].image, template[0].init_container[*].image, registry.server ] + ignore_changes = var.ignore_changes } } diff --git a/modules/container_app/variables.tf b/modules/container_app/variables.tf index bf53cef..775d632 100644 --- a/modules/container_app/variables.tf +++ b/modules/container_app/variables.tf @@ -46,6 +46,11 @@ variable "domain_name" { type = string } +variable "ignore_changes" { + default = [] + type = list(string) +} + variable "ingress_external_enabled" { default = false type = bool