Skip to content

Commit

Permalink
updating auth
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrichlake committed Dec 14, 2023
1 parent 7b61384 commit 79e74bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions operations/template/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ resource "azurerm_linux_web_app" "api" {
ENV = var.environment
REPORT_STREAM_URL_PREFIX = "https://${local.rs_domain_prefix}prime.cdc.gov"
KEY_VAULT_NAME = azurerm_key_vault.key_storage.name
DB_URL = "jdbc:postgresql://cdcti-${var.environment}-database.postgres.database.azure.com"
DB_URL = "cdcti-${var.environment}-database.postgres.database.azure.com"
DB_PORT = "5432"
DB_NAME = "postgres"
DB_USER = azurerm_postgresql_flexible_server.database.administrator_login
DB_PASS = azurerm_postgresql_flexible_server.database.administrator_password
DB_USER = "DOG"
DB_PASS = "COW"
DB_SSL = "true"
}

Expand Down
9 changes: 7 additions & 2 deletions operations/template/db.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ resource "azurerm_postgresql_flexible_server" "database" {
version = "16"
storage_mb = "32768"
backup_retention_days = "14"
administrator_login = "user"
administrator_password = "test"
active_directory_auth_enabled = "true"

authentication {
password_auth_enabled = "false"
active_directory_auth_enabled = "true"
}

lifecycle {
ignore_changes = [
zone,
Expand Down

0 comments on commit 79e74bf

Please sign in to comment.