Skip to content

Instantly share code, notes, and snippets.

@abhiyerra
Created December 2, 2016 18:53
Show Gist options
  • Save abhiyerra/6f205af59b20cce5523e810e9f3b2f33 to your computer and use it in GitHub Desktop.
Save abhiyerra/6f205af59b20cce5523e810e9f3b2f33 to your computer and use it in GitHub Desktop.
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