Skip to content

Commit

Permalink
infra: add additional containers to db
Browse files Browse the repository at this point in the history
  • Loading branch information
rettetdemdativ committed Jun 24, 2024
1 parent d8442e2 commit 21ac86a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions infra/database.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,23 @@ resource "azurerm_cosmosdb_sql_container" "listings_by_city" {
account_name = azurerm_cosmosdb_account.db_acc.name
database_name = azurerm_cosmosdb_sql_database.db.name

partition_key_path = "/_partitionKey"
}

resource "azurerm_cosmosdb_sql_container" "notification_settings_by_city" {
name = "NotificationSettingsByCity"
resource_group_name = azurerm_cosmosdb_account.db_acc.resource_group_name
account_name = azurerm_cosmosdb_account.db_acc.name
database_name = azurerm_cosmosdb_sql_database.db.name

partition_key_path = "/_partitionKey"
}

resource "azurerm_cosmosdb_sql_container" "user_data_by_user_id" {
name = "UserDataByUserId"
resource_group_name = azurerm_cosmosdb_account.db_acc.resource_group_name
account_name = azurerm_cosmosdb_account.db_acc.name
database_name = azurerm_cosmosdb_sql_database.db.name

partition_key_path = "/_partitionKey"
}

0 comments on commit 21ac86a

Please sign in to comment.