Refactoring

This commit is contained in:
2025-01-17 20:38:24 -06:00
parent 540b38de30
commit ab56211602
68 changed files with 3201 additions and 2616 deletions

View File

@@ -1,17 +1,22 @@
resource "azurerm_storage_account" "storage_account" {
name = "${var.STORAGE_ACCOUNT_NAME}"
name = module.environment.storage_account_name
resource_group_name = data.azurerm_resource_group.resource_group.name
location = data.azurerm_resource_group.resource_group.location
account_tier = "Standard"
account_replication_type = "LRS"
identity {
type = "UserAssigned"
identity_ids = [azurerm_user_assigned_identity.user_assigned_identity.id]
}
}
resource "azurerm_storage_table" "logbook_storage_table" {
name = "Logbook"
storage_account_name = azurerm_storage_account.storage_account.name
resource "azurerm_storage_table" "logs_table" {
name = "logs"
storage_account_name = azurerm_storage_account.storage_account.name
}
resource "azurerm_storage_table" "pilots_storage_table" {
name = "Pilots"
storage_account_name = azurerm_storage_account.storage_account.name
resource "azurerm_storage_table" "pilot_table" {
name = "pilots"
storage_account_name = azurerm_storage_account.storage_account.name
}