-
Notifications
You must be signed in to change notification settings - Fork 0
Drop cname module and create resource directly #7
Conversation
| resource "aws_route53_record" "entry" { | ||
| zone_id = aws_route53_zone.cluster_domain.zone_id | ||
| name = "*.${local.cluster_domain_name}" | ||
| type = upper(local.record_type) | ||
| ttl = local.ttl | ||
| records = [var.istio_ingress_lb] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd really prefer to use the upstream module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer not to do this, need to make sure the plan works though =/
|
Okay. So I think we have all been wrong.
resource "aws_route53_record" "www" {
zone_id = aws_route53_zone.primary.zone_id
name = "example.com"
type = "A"
alias {
name = aws_elb.main.dns_name
zone_id = aws_elb.main.zone_id
evaluate_target_health = true
}
}The difference, this allows a single record to point to all the records of the ALB. |
|
I have implemented the described approach on the lb_cname branch and will open PR#8. |
|
Closing in favor of using the alias record. |
Proposed approach that works for plan.