Skip to content

Commit ebad35b

Browse files
feat: Allow setting evaluate_target_health for Route53 records (#423)
Co-authored-by: Bryant Biggs <[email protected]>
1 parent 193bebf commit ebad35b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ No modules.
425425
| <a name="input_preserve_host_header"></a> [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 |
426426
| <a name="input_putin_khuylo"></a> [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 |
427427
| <a name="input_region"></a> [region](#input\_region) | Region where the resource(s) will be managed. Defaults to the Region set in the provider configuration | `string` | `null` | no |
428-
| <a name="input_route53_records"></a> [route53\_records](#input\_route53\_records) | Map of Route53 records to create. Each record map should contain `zone_id`, `name`, and `type` | <pre>map(object({<br/> zone_id = string<br/> name = optional(string)<br/> type = string<br/> }))</pre> | `null` | no |
428+
| <a name="input_route53_records"></a> [route53\_records](#input\_route53\_records) | Map of Route53 records to create. Each record map should contain `zone_id`, `name`, and `type` | <pre>map(object({<br/> zone_id = string<br/> name = optional(string)<br/> type = string<br/> evaluate_target_health = optional(bool, true)<br/> }))</pre> | `null` | no |
429429
| <a name="input_security_group_description"></a> [security\_group\_description](#input\_security\_group\_description) | Description of the security group created | `string` | `null` | no |
430430
| <a name="input_security_group_egress_rules"></a> [security\_group\_egress\_rules](#input\_security\_group\_egress\_rules) | Security group egress rules to add to the security group created | <pre>map(object({<br/> name = optional(string)<br/><br/> cidr_ipv4 = optional(string)<br/> cidr_ipv6 = optional(string)<br/> description = optional(string)<br/> from_port = optional(string)<br/> ip_protocol = optional(string, "tcp")<br/> prefix_list_id = optional(string)<br/> referenced_security_group_id = optional(string)<br/> tags = optional(map(string), {})<br/> to_port = optional(string)<br/> }))</pre> | `null` | no |
431431
| <a name="input_security_group_ingress_rules"></a> [security\_group\_ingress\_rules](#input\_security\_group\_ingress\_rules) | Security group ingress rules to add to the security group created | <pre>map(object({<br/> name = optional(string)<br/><br/> cidr_ipv4 = optional(string)<br/> cidr_ipv6 = optional(string)<br/> description = optional(string)<br/> from_port = optional(string)<br/> ip_protocol = optional(string, "tcp")<br/> prefix_list_id = optional(string)<br/> referenced_security_group_id = optional(string)<br/> tags = optional(map(string), {})<br/> to_port = optional(string)<br/> }))</pre> | `null` | no |

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ resource "aws_route53_record" "this" {
837837
alias {
838838
name = aws_lb.this[0].dns_name
839839
zone_id = aws_lb.this[0].zone_id
840-
evaluate_target_health = true
840+
evaluate_target_health = each.value.evaluate_target_health
841841
}
842842
}
843843

variables.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -596,9 +596,10 @@ variable "security_group_tags" {
596596
variable "route53_records" {
597597
description = "Map of Route53 records to create. Each record map should contain `zone_id`, `name`, and `type`"
598598
type = map(object({
599-
zone_id = string
600-
name = optional(string)
601-
type = string
599+
zone_id = string
600+
name = optional(string)
601+
type = string
602+
evaluate_target_health = optional(bool, true)
602603
}))
603604
default = null
604605
}

0 commit comments

Comments
 (0)