Skip to content

Instantly share code, notes, and snippets.

@c3st7n
Created January 20, 2017 19:20
Show Gist options
  • Save c3st7n/98905c8912892389f669fa6f1f3914b0 to your computer and use it in GitHub Desktop.
Save c3st7n/98905c8912892389f669fa6f1f3914b0 to your computer and use it in GitHub Desktop.
AWS CloudFormation Route53 MX record example
{
"Resources": {
"ExampleMXRecord": {
"Type": "AWS::Route53::RecordSet",
"Properties": {
"HostedZoneName": "example.com.",
"Comment": "My Example MX Record",
"Name": "example.com.",
"Type": "MX",
"TTL": "600",
"ResourceRecords": [
"10 mail1.example.com",
"20 inbound-smtp.us-west-2.amazonaws.com."
]
}
}
}
}
@DanielBoa
Copy link

May be of use to others:

    GSuiteMX:
      Type: AWS::Route53::RecordSet
      Properties:
        HostedZoneId:
          Ref: HostedZone #references AWS::Route53::HostedZone resource
        Comment: 'Google Suite MX Records'
        Name: 'example.com'
        Type: 'MX'
        TTL: 3600
        ResourceRecords:
          - '1 ASPMX.L.GOOGLE.COM.'
          - '5 ALT1.ASPMX.L.GOOGLE.COM.'
          - '5 ALT2.ASPMX.L.GOOGLE.COM.'
          - '10 ALT3.ASPMX.L.GOOGLE.COM.'
          - '10 ALT4.ASPMX.L.GOOGLE.COM.'

@jeremyshantz
Copy link

Thanks @DanielBoa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment