-
Notifications
You must be signed in to change notification settings - Fork 3
/
_dns.tf
47 lines (42 loc) · 1.12 KB
/
_dns.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
resource "aws_route53_record" "kubernetes" {
zone_id = "${var.route53_zone_id}"
name = "${var.subdomain_name}"
type = "A"
ttl = "300"
records = ["${aws_instance.k8s-master.public_ip}"]
}
resource "aws_route53_record" "ingress" {
zone_id = "${var.route53_zone_id}"
name = "ingress"
type = "A"
ttl = "300"
records = ["${aws_instance.k8s-ingress.public_ip}"]
}
resource "aws_route53_record" "api" {
zone_id = "${var.route53_zone_id}"
name = "api"
type = "A"
ttl = "300"
records = ["${aws_instance.k8s-ingress.public_ip}"]
}
resource "aws_route53_record" "web" {
zone_id = "${var.route53_zone_id}"
name = "web"
type = "A"
ttl = "300"
records = ["${aws_instance.k8s-ingress.public_ip}"]
}
resource "aws_route53_record" "grafana" {
zone_id = "${var.route53_zone_id}"
name = "grafana"
type = "A"
ttl = "300"
records = ["${aws_instance.k8s-admin.public_ip}"]
}
resource "aws_route53_record" "kibana" {
zone_id = "${var.route53_zone_id}"
name = "kibana"
type = "A"
ttl = "300"
records = ["${aws_instance.k8s-admin.public_ip}"]
}