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 +}