Update capitalization for change records
This commit is contained in:
parent
5558f7c829
commit
73e854d900
@ -10,46 +10,75 @@ resource "cloudflare_zone" "ahosking_com" {
|
|||||||
plan = "free"
|
plan = "free"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_route53_record" "ahosking" {
|
resource "cloudflare_record" "ahosking" {
|
||||||
zone_id = aws_route53_zone.ahosking.zone_id
|
zone_id = cloudflare_zone.ahosking_com.id
|
||||||
name = "ahosking.com"
|
name = "ahosking.com"
|
||||||
type = "A"
|
type = "A"
|
||||||
ttl = "5"
|
ttl = "1"
|
||||||
records = [var.site5_ip]
|
value = var.site5_ip
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_route53_record" "ahosking_wildcard" {
|
resource "cloudflare_record" "ahosking_wildcard" {
|
||||||
zone_id = aws_route53_zone.ahosking.zone_id
|
zone_id = cloudflare_zone.ahosking_com.id
|
||||||
name = "*.ahosking.com"
|
name = "*.ahosking.com"
|
||||||
type = "A"
|
type = "A"
|
||||||
ttl = "5"
|
ttl = "1"
|
||||||
records = [var.site5_ip]
|
value = var.site5_ip
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_route53_record" "ahosking_www" {
|
resource "cloudflare_record" "ahosking_www" {
|
||||||
zone_id = aws_route53_zone.ahosking.zone_id
|
zone_id = cloudflare_zone.ahosking_com.id
|
||||||
name = "www.ahosking.com"
|
name = "www.ahosking.com"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
ttl = "1"
|
||||||
records = [aws_route53_record.ahosking.name]
|
value = cloudflare_record.ahosking.name
|
||||||
}
|
}
|
||||||
|
|
||||||
# email MX records for DNS
|
# email MX value for DNS
|
||||||
resource "aws_route53_record" "ahosking_mx" {
|
resource "cloudflare_record" "ahosking_mx" {
|
||||||
zone_id = aws_route53_zone.ahosking.zone_id
|
zone_id = cloudflare_zone.ahosking_com.id
|
||||||
name = aws_route53_zone.ahosking.name
|
name = cloudflare_zone.ahosking_com.zone
|
||||||
type = "MX"
|
type = "MX"
|
||||||
ttl = "60"
|
ttl = "60"
|
||||||
records = ["1 ASPMX.L.GOOGLE.COM",
|
value = "aspmx.l.google.com"
|
||||||
"5 ALT1.ASPMX.L.GOOGLE.COM",
|
priority = 1
|
||||||
"5 ALT2.ASPMX.L.GOOGLE.COM",
|
|
||||||
"10 ALT3.ASPMX.L.GOOGLE.COM",
|
|
||||||
"10 ALT4.ASPMX.L.GOOGLE.COM"]
|
|
||||||
}
|
}
|
||||||
resource "aws_route53_record" "ahosking_txt" {
|
resource "cloudflare_record" "ahosking_mx1" {
|
||||||
zone_id = aws_route53_zone.ahosking.zone_id
|
zone_id = cloudflare_zone.ahosking_com.id
|
||||||
name = aws_route53_zone.ahosking.name
|
name = cloudflare_zone.ahosking_com.zone
|
||||||
type = "TXT"
|
type = "MX"
|
||||||
ttl = "60"
|
ttl = "60"
|
||||||
records = ["google-site-verification=8-QKnBQElI58gnygDWcCzvDGRh31c_bFmNMaSd0fCwE"]
|
value = "alt1.aspmx.l.google.com"
|
||||||
|
priority = 5
|
||||||
|
}
|
||||||
|
resource "cloudflare_record" "ahosking_mx2" {
|
||||||
|
zone_id = cloudflare_zone.ahosking_com.id
|
||||||
|
name = cloudflare_zone.ahosking_com.zone
|
||||||
|
type = "MX"
|
||||||
|
ttl = "60"
|
||||||
|
value = "alt2.aspmx.l.google.com"
|
||||||
|
priority = 5
|
||||||
|
}
|
||||||
|
resource "cloudflare_record" "ahosking_mx3" {
|
||||||
|
zone_id = cloudflare_zone.ahosking_com.id
|
||||||
|
name = cloudflare_zone.ahosking_com.zone
|
||||||
|
type = "MX"
|
||||||
|
ttl = "60"
|
||||||
|
value = "alt3.aspmx.l.google.com"
|
||||||
|
priority = 10
|
||||||
|
}
|
||||||
|
resource "cloudflare_record" "ahosking_mx4" {
|
||||||
|
zone_id = cloudflare_zone.ahosking_com.id
|
||||||
|
name = cloudflare_zone.ahosking_com.zone
|
||||||
|
type = "MX"
|
||||||
|
ttl = "60"
|
||||||
|
value = "alt4.aspmx.l.google.com"
|
||||||
|
priority = 10
|
||||||
|
}
|
||||||
|
resource "cloudflare_record" "ahosking_txt" {
|
||||||
|
zone_id = cloudflare_zone.ahosking_com.id
|
||||||
|
name = cloudflare_zone.ahosking_com.zone
|
||||||
|
type = "TXT"
|
||||||
|
ttl = 60
|
||||||
|
value = "google-site-verification=8-QKnBQElI58gnygDWcCzvDGRh31c_bFmNMaSd0fCwE"
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user