Skip to content

Commit

Permalink
CC-2760: Terraform code fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmgovuk committed Aug 27, 2024
1 parent 7c36b67 commit dd0cce8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion terraform/environments/laa-oem/member_certificates.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# *.modernisation-platform.service.justice.gov.uk #
###################################################
resource "aws_acm_certificate" "laa_cert" {
domain_name = format("%s-%s.modernisation-platform.service.justice.gov.uk", "laa", local.environment)
# domain_name = format("%s-%s.modernisation-platform.service.justice.gov.uk", "laa", local.environment)
domain_name = local.is-production ? format("%s-%s.modernisation-platform.service.justice.gov.uk", "laa", local.environment) : format("x.%s-%s.modernisation-platform.service.justice.gov.uk", "laa", local.environment)
validation_method = "DNS"

subject_alternative_names = [
Expand Down
2 changes: 1 addition & 1 deletion terraform/environments/laa-oem/oem_ec2_wl_sg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Oracle WebLogic Server Listen Port for Managed Server 8001

resource "aws_security_group" "oem_wl_security_group_1" {
count = local.is-production ? 0 : 1
count = length(local.application_data.accounts[local.environment].ec2_oem_ami_id_wl) > 0 ? 1 : 0
name_prefix = "${local.application_name}-wl-server-sg-1-"
description = "Access to the Weblogic server"
vpc_id = data.aws_vpc.shared.id
Expand Down

0 comments on commit dd0cce8

Please sign in to comment.