mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
ROUTE53: Allow R53_ALIAS records to enable target health evaluation (#2649)
This commit is contained in:
@ -395,6 +395,9 @@ func makeR53alias(rec *models.RecordConfig, ttl uint32) string {
|
||||
if z, ok := rec.R53Alias["zone_id"]; ok {
|
||||
items = append(items, `R53_ZONE("`+z+`")`)
|
||||
}
|
||||
if e, ok := rec.R53Alias["evaluate_target_health"]; ok && e == "true" {
|
||||
items = append(items, "R53_EVALUATE_TARGET_HEALTH(true)")
|
||||
}
|
||||
if ttl != 0 {
|
||||
items = append(items, fmt.Sprintf("TTL(%d)", ttl))
|
||||
}
|
||||
|
Reference in New Issue
Block a user