initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
resource "aws_route53_record" "this" {
|
||||
zone_id = var.zone_id
|
||||
name = var.record_name
|
||||
type = var.record_type
|
||||
ttl = length(var.alias) > 0 ? null : var.record_ttl
|
||||
records = var.record_values
|
||||
set_identifier = var.set_identifier
|
||||
dynamic "alias" {
|
||||
for_each = var.alias
|
||||
content {
|
||||
name = alias.value["name"]
|
||||
zone_id = alias.value["zone_id"]
|
||||
evaluate_target_health = alias.value["evaluate_target_health"]
|
||||
}
|
||||
}
|
||||
dynamic "weighted_routing_policy" {
|
||||
for_each = var.weighted_routing_policy
|
||||
content {
|
||||
weight = weighted_routing_policy.value["weight"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user