From 16204e328f87059f98e791856832827db758fe37 Mon Sep 17 00:00:00 2001 From: Piotr Grzeskowiak Date: Tue, 2 Jan 2024 14:09:17 +0000 Subject: [PATCH] NIT-1018 align dns name with ansible codebase --- .../modules/components/oracle_db_instance/dns.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/terraform/environments/delius-core/modules/components/oracle_db_instance/dns.tf b/terraform/environments/delius-core/modules/components/oracle_db_instance/dns.tf index ea70a7e5780..a32f823aa44 100644 --- a/terraform/environments/delius-core/modules/components/oracle_db_instance/dns.tf +++ b/terraform/environments/delius-core/modules/components/oracle_db_instance/dns.tf @@ -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] -} \ No newline at end of file +}