Skip to content

Commit 13e4b70

Browse files
committed
data/aws: create an api-int dns name
wired to the same load balancer. But does mean you can change the certs and CA for the apiserver on the public name, but let us continue to own certs for the -int name.
1 parent b4b6ee8 commit 13e4b70

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

data/data/aws/route53/base.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ resource "aws_route53_record" "api_external" {
3030
}
3131

3232
resource "aws_route53_record" "api_internal" {
33+
zone_id = "${aws_route53_zone.int.zone_id}"
34+
name = "api-int.${var.cluster_domain}"
35+
type = "A"
36+
37+
alias {
38+
name = "${var.api_internal_lb_dns_name}"
39+
zone_id = "${var.api_internal_lb_zone_id}"
40+
evaluate_target_health = false
41+
}
42+
}
43+
44+
resource "aws_route53_record" "api_external_internal_zone" {
3345
zone_id = "${aws_route53_zone.int.zone_id}"
3446
name = "api.${var.cluster_domain}"
3547
type = "A"

0 commit comments

Comments
 (0)