-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudflare_website.tf
72 lines (61 loc) · 1.77 KB
/
cloudflare_website.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
# Sorsby.co
resource "cloudflare_record" "sorsby_liam_dmarc" {
allow_overwrite = true
zone_id = var.cloudflare_zone_id
name = "_dmarc"
value = var.cloudflare_dns_liam_dmarc
type = "TXT"
}
resource "cloudflare_record" "sorsby_liam_dkim" {
allow_overwrite = true
zone_id = var.cloudflare_zone_id
name = "*._domainkey"
value = "v=DKIM1; p="
type = "TXT"
}
resource "cloudflare_record" "sorsby_liam_spf" {
allow_overwrite = true
zone_id = var.cloudflare_zone_id
name = "sorsby.co"
value = "v=spf1 include:_spf.mx.cloudflare.net ~all"
type = "TXT"
}
resource "cloudflare_record" "sorsby_liam_google_verification" {
allow_overwrite = true
zone_id = var.cloudflare_zone_id
name = "sorsby.co"
value = "google-site-verification=8NduDgGv3rm2P0V3DdI2ID0s7Ws8mWm7o9G94-NCS1E"
type = "TXT"
}
resource "cloudflare_record" "vercel_A_record" {
name = "@"
type = "A"
zone_id = var.cloudflare_zone_id
value = "76.76.21.21"
}
resource "cloudflare_record" "vercel_CNAME_record" {
name = "www"
type = "CNAME"
zone_id = var.cloudflare_zone_id
value = "cname.vercel-dns.com."
}
resource "cloudflare_email_routing_settings" "email_routing_setting" {
zone_id = var.cloudflare_zone_id
enabled = "true"
}
resource "cloudflare_email_routing_address" "personal_routing_address" {
account_id = var.cloudflare_zone_id
email = var.personal_email
}
resource "cloudflare_email_routing_catch_all" "email_routing" {
zone_id = var.cloudflare_zone_id
name = "catch all"
enabled = true
matcher {
type = "all"
}
action {
type = "forward"
value = [var.personal_email]
}
}