Skip to content

Commit 8f6219c

Browse files
committed
rename a variable
1 parent 5483c3e commit 8f6219c

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

infrastructure/modules/container-apps/jobs.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ module "db_setup" {
9292
# alerts
9393
action_group_id = var.action_group_id
9494
enable_alerting = var.enable_alerting
95-
log_analytics_workspace_id = var.log_analytics_workspace_audit_id
95+
log_analytics_workspace_id = var.log_analytics_workspace_id
9696

9797
depends_on = [
9898
module.queue_storage_role_assignment,
@@ -138,9 +138,9 @@ module "scheduled_jobs" {
138138

139139

140140
# alerts
141-
action_group_id = var.action_group_id
142-
enable_alerting = var.enable_alerting
143-
log_analytics_workspace_audit_id = var.log_analytics_workspace_audit_id
141+
action_group_id = var.action_group_id
142+
enable_alerting = var.enable_alerting
143+
log_analytics_workspace_id = var.log_analytics_workspace_id
144144

145145
# Ensure RBAC role assignments are created before the job definition finalizes
146146
depends_on = [

infrastructure/modules/container-apps/postgres.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module "postgres" {
2525
admin_identities = [module.db_connect_identity[0]]
2626

2727
# Diagnostic Settings
28-
log_analytics_workspace_id = var.log_analytics_workspace_audit_id
28+
log_analytics_workspace_id = var.log_analytics_workspace_id
2929
monitor_diagnostic_setting_postgresql_server_enabled_logs = ["PostgreSQLLogs", "PostgreSQLFlexSessions", "PostgreSQLFlexQueryStoreRuntime", "PostgreSQLFlexQueryStoreWaitStats", "PostgreSQLFlexTableStats", "PostgreSQLFlexDatabaseXacts"]
3030
monitor_diagnostic_setting_postgresql_server_metrics = ["AllMetrics"]
3131

infrastructure/modules/container-apps/storage.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module "storage" {
1717

1818
containers = local.storage_containers
1919
location = var.region
20-
log_analytics_workspace_id = var.log_analytics_workspace_audit_id
20+
log_analytics_workspace_id = var.log_analytics_workspace_id
2121
# log_analytics_workspace_id = module.log_analytics_workspace_audit.id
2222

2323
monitor_diagnostic_setting_storage_account_enabled_logs = ["StorageWrite", "StorageRead", "StorageDelete"]

infrastructure/modules/container-apps/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ variable "hub" {
7373
type = string
7474
}
7575

76-
variable "log_analytics_workspace_audit_id" {
76+
variable "log_analytics_workspace_id" {
7777
description = "Log analytics workspace audit ID"
7878
type = string
7979
}

infrastructure/modules/infra/output.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ output "vnet_name" {
1010
value = module.main_vnet.name
1111
}
1212

13-
output "log_analytics_workspace_audit_id" {
13+
output "log_analytics_workspace_id" {
1414
value = module.log_analytics_workspace_audit.id
1515
}
1616

infrastructure/terraform/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module "container-apps" {
5555
fetch_secrets_from_app_key_vault = var.fetch_secrets_from_app_key_vault
5656
front_door_profile = var.front_door_profile
5757
hub = var.hub
58-
log_analytics_workspace_audit_id = var.deploy_infra ? module.infra[0].log_analytics_workspace_audit_id : data.azurerm_log_analytics_workspace.audit[0].id
58+
log_analytics_workspace_id = var.deploy_infra ? module.infra[0].log_analytics_workspace_id : data.azurerm_log_analytics_workspace.audit[0].id
5959
postgres_backup_retention_days = var.postgres_backup_retention_days
6060
postgres_geo_redundant_backup_enabled = var.postgres_geo_redundant_backup_enabled
6161
postgres_sku_name = var.postgres_sku_name

0 commit comments

Comments
 (0)