Skip to content

Commit

Permalink
remove database configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasisnes committed Oct 7, 2024
1 parent 0fa7c46 commit 3d7cbb9
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions infra/deploy/altinn-register/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ module "key_vault" {
metadata = local.metadata
entraid_admins = [data.azurerm_user_assigned_identity.admin.principal_id]


dns_zones = [data.azurerm_private_dns_zone.key_vault.id]
subnet_id = data.azurerm_subnet.default.id
tenant_id = data.azurerm_client_config.current.tenant_id
Expand All @@ -135,15 +134,3 @@ module "postgres_server" {
subnet_id = data.azurerm_subnet.postgres.id
tenant_id = data.azurerm_client_config.current.tenant_id
}

resource "azurerm_postgresql_flexible_server_database" "database" {
name = "register"
server_id = module.postgres_server.id
collation = "en_US.utf8"
charset = "utf8"

# prevent the possibility of accidental data loss
lifecycle {
prevent_destroy = true
}
}

0 comments on commit 3d7cbb9

Please sign in to comment.