Skip to content

Commit

Permalink
add new collections
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacavallaro committed Sep 5, 2023
1 parent 2bf6b5f commit 3feb470
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/domains/sign/cosmos_backoffice.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,33 @@ module "cosmosdb_sql_container_backoffice-api-keys" {

default_ttl = var.io_sign_database_backoffice.api_keys.ttl
}

module "cosmosdb_sql_container_backoffice-issuers" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//cosmosdb_sql_container?ref=v6.20.2"
name = "issuers"
resource_group_name = azurerm_resource_group.data_rg.name
account_name = module.cosmosdb_account.name
database_name = module.cosmosdb_sql_database_backoffice.name
partition_key_path = "/institutionId"

autoscale_settings = {
max_throughput = var.io_sign_database_backoffice.issuers.max_throughput
}

default_ttl = var.io_sign_database_backoffice.issuers.ttl
}

module "cosmosdb_sql_container_backoffice-consents" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//cosmosdb_sql_container?ref=v6.20.2"
name = "consents"
resource_group_name = azurerm_resource_group.data_rg.name
account_name = module.cosmosdb_account.name
database_name = module.cosmosdb_sql_database_backoffice.name
partition_key_path = "/institutionId"

autoscale_settings = {
max_throughput = var.io_sign_database_backoffice.consents.max_throughput
}

default_ttl = var.io_sign_database_backoffice.consents.ttl
}

0 comments on commit 3feb470

Please sign in to comment.