api no longer fails when no pilots or logbook entries

This commit is contained in:
2024-12-01 11:10:13 -06:00
parent cd21f5170f
commit 28115bbcaa
4 changed files with 61 additions and 43 deletions

View File

@@ -1,23 +1,17 @@
resource "azurerm_storage_account" "storage_account_dev" {
name = "${var.STORAGE_ACCOUNT_NAME}dev"
resource "azurerm_storage_account" "storage_account" {
name = "${var.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"
}
resource "azurerm_storage_account" "storage_account_staging" {
name = "${var.STORAGE_ACCOUNT_NAME}staging"
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"
resource "azurerm_storage_table" "logbook_storage_table" {
name = "Logbook"
storage_account_name = azurerm_storage_account.storage_account.name
}
resource "azurerm_storage_account" "storage_account_prod" {
name = "${var.STORAGE_ACCOUNT_NAME}prod"
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"
resource "azurerm_storage_table" "pilots_storage_table" {
name = "Pilots"
storage_account_name = azurerm_storage_account.storage_account.name
}