Skip to content

Commit

Permalink
[#IOPID-279] Link storage to fn-fast-login (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
BurnedMarshal authored Sep 1, 2023
1 parent 0ad39be commit 2bf6b5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions src/domains/citizen-auth-app/06_storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
//}
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: 1 addition & 2 deletions src/domains/citizen-auth-app/07_function_fast_login.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/domains/citizen-auth-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down

0 comments on commit 2bf6b5f

Please sign in to comment.