Skip to content

Commit

Permalink
update to log_category_types (Azure#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebader authored Sep 8, 2022
1 parent 555b9e3 commit f39eb4f
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "azurerm_monitor_diagnostic_setting" "diag_settings_afd" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.frontdoor.logs
for_each = data.azurerm_monitor_diagnostic_categories.frontdoor.log_category_types

content {
category = entry.value
Expand Down Expand Up @@ -46,7 +46,7 @@ resource "azurerm_monitor_diagnostic_setting" "acr" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.acr.logs
for_each = data.azurerm_monitor_diagnostic_categories.acr.log_category_types

content {
category = entry.value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resource "azurerm_monitor_diagnostic_setting" "appservice" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.appservice[each.key].logs
for_each = data.azurerm_monitor_diagnostic_categories.appservice[each.key].log_category_types

content {
category = entry.value
Expand Down Expand Up @@ -47,7 +47,7 @@ resource "azurerm_monitor_diagnostic_setting" "pgprimary" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.pgprimary.logs
for_each = data.azurerm_monitor_diagnostic_categories.pgprimary.log_category_types

content {
category = entry.value
Expand Down Expand Up @@ -85,7 +85,7 @@ resource "azurerm_monitor_diagnostic_setting" "pgreplica" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.pgreplica[each.key].logs
for_each = data.azurerm_monitor_diagnostic_categories.pgreplica[each.key].log_category_types

content {
category = entry.value
Expand Down Expand Up @@ -124,7 +124,7 @@ resource "azurerm_monitor_diagnostic_setting" "vnet" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.vnet[each.key].logs
for_each = data.azurerm_monitor_diagnostic_categories.vnet[each.key].log_category_types

content {
category = entry.value
Expand Down Expand Up @@ -163,7 +163,7 @@ resource "azurerm_monitor_diagnostic_setting" "asp" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.asp[each.key].logs
for_each = data.azurerm_monitor_diagnostic_categories.asp[each.key].log_category_types

content {
category = entry.value
Expand Down Expand Up @@ -202,7 +202,7 @@ resource "azurerm_monitor_diagnostic_setting" "akv" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.akv[each.key].logs
for_each = data.azurerm_monitor_diagnostic_categories.akv[each.key].log_category_types

content {
category = entry.value
Expand Down
2 changes: 1 addition & 1 deletion src/infra/workload/globalresources/acr.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ resource "azurerm_monitor_diagnostic_setting" "acr" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.acr.logs
for_each = data.azurerm_monitor_diagnostic_categories.acr.log_category_types

content {
category = entry.value
Expand Down
2 changes: 1 addition & 1 deletion src/infra/workload/globalresources/cosmosdb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ resource "azurerm_monitor_diagnostic_setting" "cosmosdb" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.cosmosdb.logs
for_each = data.azurerm_monitor_diagnostic_categories.cosmosdb.log_category_types

content {
category = entry.value
Expand Down
2 changes: 1 addition & 1 deletion src/infra/workload/globalresources/frontdoor.tf
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ resource "azurerm_monitor_diagnostic_setting" "frontdoor" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.frontdoor.logs
for_each = data.azurerm_monitor_diagnostic_categories.frontdoor.log_category_types

content {
category = entry.value
Expand Down
2 changes: 1 addition & 1 deletion src/infra/workload/globalresources/storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ resource "azurerm_monitor_diagnostic_setting" "storage_global" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.global_public.logs
for_each = data.azurerm_monitor_diagnostic_categories.global_public.log_category_types

content {
category = entry.value
Expand Down
2 changes: 1 addition & 1 deletion src/infra/workload/releaseunit/modules/stamp/eventhub.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ resource "azurerm_monitor_diagnostic_setting" "eventhub" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.eventhub.logs
for_each = data.azurerm_monitor_diagnostic_categories.eventhub.log_category_types

content {
category = entry.value
Expand Down
2 changes: 1 addition & 1 deletion src/infra/workload/releaseunit/modules/stamp/keyvault.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ resource "azurerm_monitor_diagnostic_setting" "kv" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.kv.logs
for_each = data.azurerm_monitor_diagnostic_categories.kv.log_category_types

content {
category = entry.value
Expand Down
2 changes: 1 addition & 1 deletion src/infra/workload/releaseunit/modules/stamp/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ resource "azurerm_monitor_diagnostic_setting" "aks" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.aks.logs
for_each = data.azurerm_monitor_diagnostic_categories.aks.log_category_types

content {
category = entry.value
Expand Down
2 changes: 1 addition & 1 deletion src/infra/workload/releaseunit/modules/stamp/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ resource "azurerm_monitor_diagnostic_setting" "vnet" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.vnet.logs
for_each = data.azurerm_monitor_diagnostic_categories.vnet.log_category_types

content {
category = entry.value
Expand Down
8 changes: 4 additions & 4 deletions src/infra/workload/releaseunit/modules/stamp/storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ resource "azurerm_monitor_diagnostic_setting" "storage_public" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.storage_public.logs
for_each = data.azurerm_monitor_diagnostic_categories.storage_public.log_category_types

content {
category = entry.value
Expand Down Expand Up @@ -118,7 +118,7 @@ resource "azurerm_monitor_diagnostic_setting" "storage_public_blob" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.storage_public_blob.logs
for_each = data.azurerm_monitor_diagnostic_categories.storage_public_blob.log_category_types

content {
category = entry.value
Expand Down Expand Up @@ -161,7 +161,7 @@ resource "azurerm_monitor_diagnostic_setting" "storage_private" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.storage_private.logs
for_each = data.azurerm_monitor_diagnostic_categories.storage_private.log_category_types

content {
category = entry.value
Expand Down Expand Up @@ -201,7 +201,7 @@ resource "azurerm_monitor_diagnostic_setting" "storage_private_blob" {

dynamic "log" {
iterator = entry
for_each = data.azurerm_monitor_diagnostic_categories.storage_private_blob.logs
for_each = data.azurerm_monitor_diagnostic_categories.storage_private_blob.log_category_types

content {
category = entry.value
Expand Down

0 comments on commit f39eb4f

Please sign in to comment.