Skip to content

Commit e5be41e

Browse files
committed
feat: enable diagnostics for storage accounts
1 parent bba5c0b commit e5be41e

File tree

1 file changed

+1
-1
lines changed
  • infrastructure/modules/storage

1 file changed

+1
-1
lines changed

infrastructure/modules/storage/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ module "diagnostic-settings-sa" {
140140
source = "../diagnostic-settings"
141141

142142
name = "${azurerm_storage_account.storage_account.name}-diagnotic-setting-storage"
143-
target_resource_id = "${azurerm_storage_account.storage_account.id}/default"
143+
target_resource_id = "${azurerm_storage_account.storage_account.id}"
144144
log_analytics_workspace_id = var.log_analytics_workspace_id
145145
enabled_log = var.monitor_diagnostic_setting_storage_account_enabled_logs
146146
enabled_metric = var.monitor_diagnostic_setting_storage_account_metrics

0 commit comments

Comments
 (0)