@@ -131,7 +131,7 @@ data "aws_partition" "current" {}
131
131
data "aws_region" "current" {}
132
132
133
133
data "aws_route53_zone" "this" {
134
- count = var. create_route53_record ? 1 : 0
134
+ count = var. create_route53_record || var . create_route53_aaaa_record ? 1 : 0
135
135
136
136
name = var. route53_zone_name
137
137
private_zone = var. route53_private_zone
@@ -234,6 +234,8 @@ module "alb" {
234
234
prefix = var.alb_log_location_prefix
235
235
}
236
236
237
+ ip_address_type = var. alb_ip_address_type
238
+
237
239
enable_deletion_protection = var. alb_enable_deletion_protection
238
240
239
241
drop_invalid_header_fields = var. alb_drop_invalid_header_fields
@@ -405,7 +407,7 @@ module "acm" {
405
407
}
406
408
407
409
# ###############################################################################
408
- # Route53 record
410
+ # Route53 records
409
411
# ###############################################################################
410
412
resource "aws_route53_record" "atlantis" {
411
413
count = var. create_route53_record ? 1 : 0
@@ -421,6 +423,20 @@ resource "aws_route53_record" "atlantis" {
421
423
}
422
424
}
423
425
426
+ resource "aws_route53_record" "atlantis-AAAA" {
427
+ count = var. create_route53_aaaa_record ? 1 : 0
428
+
429
+ zone_id = data. aws_route53_zone . this [0 ]. zone_id
430
+ name = var. route53_record_name != null ? var. route53_record_name : var. name
431
+ type = " AAAA"
432
+
433
+ alias {
434
+ name = module. alb . lb_dns_name
435
+ zone_id = module. alb . lb_zone_id
436
+ evaluate_target_health = true
437
+ }
438
+ }
439
+
424
440
# ###############################################################################
425
441
# EFS
426
442
# ###############################################################################
0 commit comments