Commit 80849a4c authored by sfstar's avatar sfstar Committed by GitHub

feat: Add ability for users to create aliases in the same zone (#35)

parent 43250f1a
......@@ -116,6 +116,14 @@ module "records" {
failover_routing_policy = {
type = "SECONDARY"
}
},
{
name = "alternative-resource-name"
type = "A"
set_identifier = "alternative-resource-name"
alias = {
name = module.s3_bucket.this_s3_bucket_website_domain
}
}
]
......
......@@ -28,7 +28,7 @@ resource "aws_route53_record" "this" {
content {
name = each.value.alias.name
zone_id = each.value.alias.zone_id
zone_id = try(each.value.alias.zone_id, data.aws_route53_zone.this[0].zone_id)
evaluate_target_health = lookup(each.value.alias, "evaluate_target_health", false)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment