Skip to content

Commit

Permalink
Adding 1 admin
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrichlake committed Mar 1, 2024
1 parent ba2a253 commit 64f6598
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions operations/template/db.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ resource "azurerm_postgresql_flexible_server" "database" {
}
}

#resource "azurerm_postgresql_flexible_server_active_directory_administrator" "admin_for_deployer" {
# server_name = azurerm_postgresql_flexible_server.database.name
# resource_group_name = data.azurerm_resource_group.group.name
# tenant_id = data.azurerm_client_config.current.tenant_id
# object_id = var.deployer_id
# principal_name = "cdcti-github"
# principal_type = "ServicePrincipal"
#}
resource "azurerm_postgresql_flexible_server_active_directory_administrator" "admin_for_deployer" {
server_name = azurerm_postgresql_flexible_server.database.name
resource_group_name = data.azurerm_resource_group.group.name
tenant_id = data.azurerm_client_config.current.tenant_id
object_id = var.deployer_id
principal_name = "cdcti-github"
principal_type = "ServicePrincipal"
}
#
#resource "azurerm_postgresql_flexible_server_active_directory_administrator" "admin_for_app" {
# server_name = azurerm_postgresql_flexible_server.database.name
Expand Down

0 comments on commit 64f6598

Please sign in to comment.