-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroute53.tf
42 lines (37 loc) · 1004 Bytes
/
route53.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
resource "aws_route53_record" "ranch-ewr-1" {
zone_id = "${var.route53_zone_id}"
name = "ranch-ewr-1.${var.fqdn}"
type = "A"
ttl = "300"
records = [
"${packet_device.ranch-ewr-1-s1.network.0.address}",
"${packet_device.ranch-ewr-1-s2.network.0.address}"
]
}
resource "aws_route53_record" "ranch-ewr-1-s1" {
zone_id = "${var.route53_zone_id}"
name = "ranch-ewr-1-s1.${var.fqdn}"
type = "A"
ttl = "300"
records = [
"${packet_device.ranch-ewr-1-s1.network.0.address}"
]
}
resource "aws_route53_record" "ranch-ewr-1-s2" {
zone_id = "${var.route53_zone_id}"
name = "ranch-ewr-1-s2.${var.fqdn}"
type = "A"
ttl = "300"
records = [
"${packet_device.ranch-ewr-1-s2.network.0.address}"
]
}
resource "aws_route53_record" "ranch-ewr-1-a1" {
zone_id = "${var.route53_zone_id}"
name = "ranch-ewr-1-a1.${var.fqdn}"
type = "A"
ttl = "300"
records = [
"${packet_device.ranch-ewr-1-a1.network.0.address}"
]
}