Skip to content

Instantly share code, notes, and snippets.

@abhiyerra abhiyerra/gmail.tf
Created Dec 2, 2016

Embed
What would you like to do?
Cloudflare + Gmail MX Records
provider "cloudflare" {
email = ""
token = ""
}
resource "cloudflare_record" "cf_mx0" {
domain = "opszero.com"
name = "@"
value = "aspmx.l.google.com"
priority = "1"
type = "MX"
}
resource "cloudflare_record" "cf_mx1" {
domain = "opszero.com"
name = "@"
value = "alt1.aspmx.l.google.com"
priority = "5"
type = "MX"
}
resource "cloudflare_record" "cf_mx2" {
domain = "opszero.com"
name = "@"
value = "alt2.aspmx.l.google.com"
priority = "5"
type = "MX"
}
resource "cloudflare_record" "cf_mx3" {
domain = "opszero.com"
name = "@"
value = "aspmx2.googlemail.com"
priority = "10"
type = "MX"
}
resource "cloudflare_record" "cf_mx4" {
domain = "opszero.com"
name = "@"
value = "aspmx3.googlemail.com"
priority = "10"
type = "MX"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.