Skip to content

Commit

Permalink
Policy only enforces Environment tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertGHippo committed Jul 24, 2024
1 parent 0658491 commit f3d7982
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions terraform/modules/azure-web/web-app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "azurerm_log_analytics_workspace" "webapp_logs" {
daily_quota_gb = 1

lifecycle {
ignore_changes = [tags]
ignore_changes = [tags["Environment"]]
}
}

Expand All @@ -21,7 +21,7 @@ resource "azurerm_application_insights" "web" {
tags = var.tags

lifecycle {
ignore_changes = [tags]
ignore_changes = [tags["Environment"]]
}
}

Expand All @@ -35,7 +35,7 @@ resource "azurerm_service_plan" "asp" {
worker_count = var.webapp_worker_count

lifecycle {
ignore_changes = [tags]
ignore_changes = [tags["Environment"]]
}

#checkov:skip=CKV_AZURE_212:Argument not available
Expand Down Expand Up @@ -116,7 +116,7 @@ resource "azurerm_linux_web_app" "webapp" {
}

lifecycle {
ignore_changes = [site_config.0.application_stack, tags]
ignore_changes = [site_config.0.application_stack, tags["Environment"]]
}

tags = var.tags
Expand Down Expand Up @@ -176,7 +176,7 @@ resource "azurerm_linux_web_app_slot" "webapp_slot" {
}

lifecycle {
ignore_changes = [tags, site_config.0.application_stack]
ignore_changes = [tags["Environment"], site_config.0.application_stack]
}
}

Expand Down Expand Up @@ -335,7 +335,7 @@ resource "azurerm_monitor_autoscale_setting" "asp_as" {
}

lifecycle {
ignore_changes = [tags]
ignore_changes = [tags["Environment"]]
}
}

Expand Down

0 comments on commit f3d7982

Please sign in to comment.