Skip to content

Commit

Permalink
[#IOPID-279] Comment data for uncreated resources
Browse files Browse the repository at this point in the history
Another PR will enable the commented data resources
  • Loading branch information
BurnedMarshal committed Sep 1, 2023
1 parent f120bcf commit 035ba1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/domains/citizen-auth-app/06_storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ data "azurerm_storage_account" "lollipop_assertion_storage" {
resource_group_name = format("%s-%s-data-rg", local.product, var.domain)
}

data "azurerm_storage_account" "lv_audit_logs_storage" {
name = replace(format("%s-lv-logs-st", local.product), "-", "")
resource_group_name = format("%s-%s-data-rg", local.product, var.domain)
}
// Data must be enabled when the resource will be created
// data "azurerm_storage_account" "lv_audit_logs_storage" {
// name = replace(format("%s-lv-logs-st", local.product), "-", "")
// resource_group_name = format("%s-%s-data-rg", local.product, var.domain)
//}
3 changes: 2 additions & 1 deletion src/domains/citizen-auth-app/07_function_fast_login.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ locals {
// --------------------------
// Fast login audit log storage
// --------------------------
FAST_LOGIN_AUDIT_CONNECTION_STRING = data.azurerm_storage_account.lv_audit_logs_storage.primary_connection_string
// Wait the resource creation before enable data
//FAST_LOGIN_AUDIT_CONNECTION_STRING = data.azurerm_storage_account.lv_audit_logs_storage.primary_connection_string
}
}
}
Expand Down

0 comments on commit 035ba1c

Please sign in to comment.