Skip to content

Commit

Permalink
Merge pull request #256 from DFE-Digital/GITPB-685
Browse files Browse the repository at this point in the history
Cannot simply rename the service, so wont
  • Loading branch information
sfawcett123 authored Sep 22, 2020
2 parents 091d11c + 77d4a51 commit 55c3487
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions terraform/paas/application.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
}
Expand Down
2 changes: 1 addition & 1 deletion terraform/paas/services.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 55c3487

Please sign in to comment.