diff --git a/README.md b/README.md index 92ecc6d..c93a9a1 100644 --- a/README.md +++ b/README.md @@ -425,7 +425,7 @@ No modules. | [preserve\_host\_header](#input\_preserve\_host\_header) | Indicates whether the Application Load Balancer should preserve the Host header in the HTTP request and send it to the target without any change. Defaults to `false` | `bool` | `null` | no | | [putin\_khuylo](#input\_putin\_khuylo) | Do you agree that Putin doesn't respect Ukrainian sovereignty and territorial integrity? More info: https://en.wikipedia.org/wiki/Putin_khuylo! | `bool` | `true` | no | | [region](#input\_region) | Region where the resource(s) will be managed. Defaults to the Region set in the provider configuration | `string` | `null` | no | -| [route53\_records](#input\_route53\_records) | Map of Route53 records to create. Each record map should contain `zone_id`, `name`, and `type` |
map(object({
zone_id = string
name = optional(string)
type = string
}))
| `null` | no | +| [route53\_records](#input\_route53\_records) | Map of Route53 records to create. Each record map should contain `zone_id`, `name`, and `type` |
map(object({
zone_id = string
name = optional(string)
type = string
evaluate_target_health = optional(bool, true)
}))
| `null` | no | | [security\_group\_description](#input\_security\_group\_description) | Description of the security group created | `string` | `null` | no | | [security\_group\_egress\_rules](#input\_security\_group\_egress\_rules) | Security group egress rules to add to the security group created |
map(object({
name = optional(string)

cidr_ipv4 = optional(string)
cidr_ipv6 = optional(string)
description = optional(string)
from_port = optional(string)
ip_protocol = optional(string, "tcp")
prefix_list_id = optional(string)
referenced_security_group_id = optional(string)
tags = optional(map(string), {})
to_port = optional(string)
}))
| `null` | no | | [security\_group\_ingress\_rules](#input\_security\_group\_ingress\_rules) | Security group ingress rules to add to the security group created |
map(object({
name = optional(string)

cidr_ipv4 = optional(string)
cidr_ipv6 = optional(string)
description = optional(string)
from_port = optional(string)
ip_protocol = optional(string, "tcp")
prefix_list_id = optional(string)
referenced_security_group_id = optional(string)
tags = optional(map(string), {})
to_port = optional(string)
}))
| `null` | no | diff --git a/main.tf b/main.tf index 848d7c1..2593cec 100644 --- a/main.tf +++ b/main.tf @@ -837,7 +837,7 @@ resource "aws_route53_record" "this" { alias { name = aws_lb.this[0].dns_name zone_id = aws_lb.this[0].zone_id - evaluate_target_health = true + evaluate_target_health = each.value.evaluate_target_health } } diff --git a/variables.tf b/variables.tf index 8ba7981..5d5401b 100644 --- a/variables.tf +++ b/variables.tf @@ -596,9 +596,10 @@ variable "security_group_tags" { variable "route53_records" { description = "Map of Route53 records to create. Each record map should contain `zone_id`, `name`, and `type`" type = map(object({ - zone_id = string - name = optional(string) - type = string + zone_id = string + name = optional(string) + type = string + evaluate_target_health = optional(bool, true) })) default = null }