This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
dns.tf
144 lines (123 loc) · 3.16 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
resource "aws_route53_zone" "speakforme-in" {
name = "speakforme.in"
tags {
Environment = "production"
terraform = true
}
}
resource "aws_route53_record" "campaign-a" {
zone_id = "${aws_route53_zone.speakforme-in.id}"
name = "campaign.speakforme.in"
type = "A"
ttl = "300"
records = ["34.199.252.2"]
}
locals {
postal-server-ip = "18.211.250.184"
}
resource "aws_route53_record" "postal-mx-a" {
zone_id = "${aws_route53_zone.speakforme-in.id}"
name = "mx.postal"
type = "A"
ttl = "300"
records = ["${local.postal-server-ip}"]
}
resource "aws_route53_record" "postal-a" {
zone_id = "${aws_route53_zone.speakforme-in.id}"
name = "postal"
type = "A"
ttl = "300"
records = ["${local.postal-server-ip}"]
}
resource "aws_route53_record" "postal-rp-a" {
zone_id = "${aws_route53_zone.speakforme-in.id}"
name = "rp.postal"
type = "A"
ttl = "300"
records = ["${local.postal-server-ip}"]
}
resource "aws_route53_record" "postal-sf-a" {
zone_id = "${aws_route53_zone.speakforme-in.id}"
name = "sf.postal"
type = "A"
ttl = "300"
records = ["${local.postal-server-ip}"]
}
resource "aws_route53_record" "storage-a" {
zone_id = "${aws_route53_zone.speakforme-in.id}"
name = "storage"
type = "A"
ttl = "300"
records = ["35.153.240.239"]
}
resource "aws_route53_record" "speakforme-a" {
zone_id = "${aws_route53_zone.speakforme-in.id}"
name = "speakforme.in"
type = "A"
ttl = "300"
records = ["104.198.14.52"]
}
// CNAME Records
resource "aws_route53_record" "beta-cname" {
zone_id = "${aws_route53_zone.speakforme-in.id}"
name = "beta"
type = "CNAME"
ttl = "1800"
records = ["speakforme.github.io."]
}
resource "aws_route53_record" "netlify-cname" {
zone_id = "${aws_route53_zone.speakforme-in.id}"
name = "netlify"
type = "CNAME"
ttl = "1800"
records = ["speakforme.netlify.com."]
}
resource "aws_route53_record" "psrp-email-cname" {
zone_id = "${aws_route53_zone.speakforme-in.id}"
name = "psrp.email"
type = "CNAME"
ttl = "1800"
records = ["rp.postal.speakforme.in."]
}
resource "aws_route53_record" "psrp-cname" {
zone_id = "${aws_route53_zone.speakforme-in.id}"
name = "psrp"
type = "CNAME"
ttl = "1800"
records = ["rp.postal.speakforme.in."]
}
resource "aws_route53_record" "www" {
zone_id = "${aws_route53_zone.speakforme-in.id}"
name = "www"
type = "CNAME"
ttl = "1800"
records = ["speakforme.netlify.com."]
}
// MX Records
resource "aws_route53_record" "email-mx" {
zone_id = "${aws_route53_zone.speakforme-in.id}"
name = "email"
type = "MX"
ttl = "60"
records = [
"10 inbound-smtp.eu-west-1.amazonaws.com.",
]
}
resource "aws_route53_record" "routes-mx" {
zone_id = "${aws_route53_zone.speakforme-in.id}"
name = "routes"
type = "MX"
ttl = "1800"
records = [
"10 mx.postal.speakforme.in.",
]
}
resource "aws_route53_record" "speakforme-mx" {
zone_id = "${aws_route53_zone.speakforme-in.id}"
name = "speakforme.in"
type = "MX"
ttl = "1800"
records = [
"10 mx.postal.speakforme.in.",
]
}