Skip to content

Commit

Permalink
Merge pull request #4416 from ministryofjustice/NIT-1018-concierge-up…
Browse files Browse the repository at this point in the history
…date-internal-dns-names-of-db-hosts

NIT-1018 align dns name with ansible codebase
  • Loading branch information
pete-j-g authored Jan 2, 2024
2 parents 171a78b + 16204e3 commit dc3059f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
resource "aws_route53_record" "db_ec2_instance" {
resource "aws_route53_record" "db_ec2_instance_internal" {
provider = aws.core-vpc
zone_id = var.account_config.route53_inner_zone_info.zone_id
name = var.db_type == "primary" ? "delius-${var.env_name}-db-${var.db_count_index}.${var.account_config.route53_inner_zone_info.name}" : "delius-${var.env_name}-db-${var.db_count_index + 1}.${var.account_config.route53_inner_zone_info.name}"
name = var.db_type == "primary" ? "${var.env_name}-delius-db-${var.db_count_index}.delius.${var.account_config.route53_inner_zone_info.name}" : "${var.env_name}-delius-db-${var.db_count_index + 1}.delius.${var.account_config.route53_inner_zone_info.name}"
type = "CNAME"
ttl = 300
ttl = 60
records = [aws_instance.db_ec2.private_dns]
}
}

0 comments on commit dc3059f

Please sign in to comment.