Merge branch 'staging' into grid-styling

This commit is contained in:
Hannah Brinkman 2020-01-22 07:03:54 -05:00 committed by GitHub
commit afc6ee0e03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -34,4 +34,12 @@ resource "azurerm_postgresql_virtual_network_rule" "sql" {
server_name = azurerm_postgresql_server.sql.name
subnet_id = var.subnet_id
ignore_missing_vnet_service_endpoint = true
}
}
resource "azurerm_postgresql_database" "db" {
name = "${var.environment}-atat"
resource_group_name = azurerm_resource_group.sql.name
server_name = azurerm_postgresql_server.sql.name
charset = "UTF8"
collation = "en_US.utf8"
}

View File

@ -0,0 +1,3 @@
output "db_name" {
value = azurerm_postgresql_database.db.name
}