diff --git a/terraform/paas/application.tf b/terraform/paas/application.tf index 8135d6ff4..2a3a7aa7a 100644 --- a/terraform/paas/application.tf +++ b/terraform/paas/application.tf @@ -13,7 +13,7 @@ resource "cloudfoundry_app" "api_application" { service_instance = cloudfoundry_service_instance.hangfire.id } service_binding { - service_instance = cloudfoundry_service_instance.crm_cache.id + service_instance = cloudfoundry_service_instance.postgres2.id } dynamic "service_binding" { for_each = cloudfoundry_user_provided_service.logging @@ -36,7 +36,7 @@ resource "cloudfoundry_app" "api_application" { SENTRY_URL = var.SENTRY_URL GOOGLE_API_KEY = var.GOOGLE_API_KEY ASPNETCORE_ENVIRONMENT = var.ASPNETCORE_ENVIRONMENT - DATABASE_INSTANCE_NAME = cloudfoundry_service_instance.crm_cache.name + DATABASE_INSTANCE_NAME = cloudfoundry_service_instance.postgres2.name HANGFIRE_INSTANCE_NAME = cloudfoundry_service_instance.hangfire.name } } diff --git a/terraform/paas/services.tf b/terraform/paas/services.tf index 921728e3d..a91f04eb8 100644 --- a/terraform/paas/services.tf +++ b/terraform/paas/services.tf @@ -17,7 +17,7 @@ resource "cloudfoundry_service_instance" "hangfire" { service_plan = data.cloudfoundry_service.postgres.service_plans["small-11"] } -resource "cloudfoundry_service_instance" "crm_cache" { +resource "cloudfoundry_service_instance" "postgres2" { name = var.paas_database_2_name space = data.cloudfoundry_space.space.id service_plan = data.cloudfoundry_service.postgres.service_plans["small-11"]