Skip to content

Commit

Permalink
NIT-1018 align dns name with ansible codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Grzeskowiak committed Jan 2, 2024
1 parent a0e0abd commit 16204e3
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 16204e3

Please sign in to comment.