Skip to content

Commit

Permalink
because subdomain of record is delegated to VPC account, we need to c…
Browse files Browse the repository at this point in the history
…hange the VPC provider
  • Loading branch information
dms1981 committed Sep 18, 2023
1 parent 2e9ef13 commit b9edc55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/environments/data-and-insights-wepi/certificates.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "aws_acm_certificate" "redshift_cert" {
domain_name = "modernisation-platform.service.justice.gov.uk"
domain_name = format("%s-%s.modernisation-platform.service.justice.gov.uk", var.networking[0].business-unit, local.environment)
validation_method = "DNS"

subject_alternative_names = [
Expand All @@ -24,7 +24,7 @@ resource "aws_acm_certificate_validation" "redshift_cert" {
}

resource "aws_route53_record" "redshift_cert_validation" {
provider = aws.core-network-services
provider = aws.core-vpc
for_each = {
for dvo in aws_acm_certificate.redshift_cert.domain_validation_options : dvo.domain_name => {
name = dvo.resource_record_name
Expand Down

0 comments on commit b9edc55

Please sign in to comment.