Skip to content

Instantly share code, notes, and snippets.

@jschr
Created April 12, 2017 02:56
Show Gist options
  • Save jschr/e53252fef59ebeb2a68bb14b609401a6 to your computer and use it in GitHub Desktop.
Save jschr/e53252fef59ebeb2a68bb14b609401a6 to your computer and use it in GitHub Desktop.
mailgun dns records
resource "aws_route53_record" "mailgun_sending_1" {
zone_id = "${data.aws_route53_zone.domain.zone_id}"
ttl = "300"
name = "${mailgun_domain.domain.sending_records.0.name}"
type = "${mailgun_domain.domain.sending_records.0.record_type}"
records = ["${mailgun_domain.domain.sending_records.0.value}"]
}
resource "aws_route53_record" "mailgun_sending_2" {
zone_id = "${data.aws_route53_zone.domain.zone_id}"
ttl = "300"
name = "${mailgun_domain.domain.sending_records.1.name}"
type = "${mailgun_domain.domain.sending_records.1.record_type}"
records = ["${mailgun_domain.domain.sending_records.1.value}"]
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment