Skip to content

Commit

Permalink
Add database url to app (#1503)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnake authored Sep 11, 2024
1 parent eddc1ec commit 5677be6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions terraform/aks/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions terraform/aks/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ module "api_application_configuration" {
ApplicationInsights__ConnectionString = azurerm_application_insights.app.connection_string
ConnectionStrings__DefaultConnection = module.postgres.dotnet_connection_string
ConnectionStrings__Redis = module.redis.connection_string
DATABASE_URL = module.postgres.url
StorageConnectionString = "DefaultEndpointsProtocol=https;AccountName=${azurerm_storage_account.app_storage.name};AccountKey=${azurerm_storage_account.app_storage.primary_access_key}"
Sentry__Dsn = module.infrastructure_secrets.map.SENTRY-DSN
SharedConfig = module.infrastructure_secrets.map.SharedConfig
Expand Down Expand Up @@ -121,6 +122,7 @@ module "authz_application_configuration" {
ApplicationInsights__ConnectionString = azurerm_application_insights.app.connection_string
ConnectionStrings__DefaultConnection = module.postgres.dotnet_connection_string
ConnectionStrings__Redis = "${module.redis.connection_string},defaultDatabase=1"
DATABASE_URL = module.postgres.url
Sentry__Dsn = module.infrastructure_secrets.map.SENTRY-DSN
SharedConfig = module.infrastructure_secrets.map.SharedConfig
StorageConnectionString = "DefaultEndpointsProtocol=https;AccountName=${azurerm_storage_account.app_storage.name};AccountKey=${azurerm_storage_account.app_storage.primary_access_key}"
Expand Down Expand Up @@ -172,6 +174,7 @@ module "ui_application_configuration" {
ApplicationInsights__ConnectionString = azurerm_application_insights.app.connection_string
ConnectionStrings__DefaultConnection = module.postgres.dotnet_connection_string
ConnectionStrings__Redis = "${module.redis.connection_string},defaultDatabase=1"
DATABASE_URL = module.postgres.url
Sentry__Dsn = module.infrastructure_secrets.map.SENTRY-DSN
SharedConfig = module.infrastructure_secrets.map.SharedConfig
StorageConnectionString = "DefaultEndpointsProtocol=https;AccountName=${azurerm_storage_account.app_storage.name};AccountKey=${azurerm_storage_account.app_storage.primary_access_key}"
Expand Down Expand Up @@ -224,6 +227,7 @@ module "worker_application_configuration" {
ApplicationInsights__ConnectionString = azurerm_application_insights.app.connection_string
ConnectionStrings__DefaultConnection = module.postgres.dotnet_connection_string
DqtReporting__ReportingDbConnectionString = local.reporting_db_connection_string
DATABASE_URL = module.postgres.url
Sentry__Dsn = module.infrastructure_secrets.map.SENTRY-DSN
StorageConnectionString = "DefaultEndpointsProtocol=https;AccountName=${azurerm_storage_account.app_storage.name};AccountKey=${azurerm_storage_account.app_storage.primary_access_key}"
SharedConfig = module.infrastructure_secrets.map.SharedConfig
Expand Down

0 comments on commit 5677be6

Please sign in to comment.