diff --git a/src/domains/citizen-auth-app/06_storage.tf b/src/domains/citizen-auth-app/06_storage.tf index f2d569f27..ca2bdde15 100644 --- a/src/domains/citizen-auth-app/06_storage.tf +++ b/src/domains/citizen-auth-app/06_storage.tf @@ -3,8 +3,7 @@ data "azurerm_storage_account" "lollipop_assertion_storage" { 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) -//} \ No newline at end of file +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) +} \ No newline at end of file diff --git a/src/domains/citizen-auth-app/07_function_fast_login.tf b/src/domains/citizen-auth-app/07_function_fast_login.tf index 78b80c164..a073517b9 100644 --- a/src/domains/citizen-auth-app/07_function_fast_login.tf +++ b/src/domains/citizen-auth-app/07_function_fast_login.tf @@ -29,8 +29,7 @@ locals { // -------------------------- // Fast login audit log storage // -------------------------- - // Wait the resource creation before enable data - //FAST_LOGIN_AUDIT_CONNECTION_STRING = data.azurerm_storage_account.lv_audit_logs_storage.primary_connection_string + FAST_LOGIN_AUDIT_CONNECTION_STRING = data.azurerm_storage_account.lv_audit_logs_storage.primary_connection_string } } } diff --git a/src/domains/citizen-auth-app/README.md b/src/domains/citizen-auth-app/README.md index b03aded36..5a934e6e4 100644 --- a/src/domains/citizen-auth-app/README.md +++ b/src/domains/citizen-auth-app/README.md @@ -76,6 +76,7 @@ | [azurerm_resource_group.data_rg](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/resource_group) | data source | | [azurerm_resource_group.monitor_rg](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/resource_group) | data source | | [azurerm_storage_account.lollipop_assertion_storage](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/storage_account) | data source | +| [azurerm_storage_account.lv_audit_logs_storage](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/storage_account) | data source | | [azurerm_subnet.apim_snet](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/subnet) | data source | | [azurerm_subnet.apim_v2_snet](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/subnet) | data source | | [azurerm_subnet.app_backend_l1_snet](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/subnet) | data source |