Skip to content

Releases: stavxyz/terraform-mailgun-aws

Experiment: DNS Provider Choices

14 Jun 19:27
Compare
Choose a tag to compare
Pre-release

Allow users to specify dns provider.

Without breaking any existing functionality or interfaces....

Set 'zone_id' for existing route 53 zones

08 Jul 23:33
db88355
Compare
Choose a tag to compare

v2.1.0

You can now (and must, if you are using an existing Route53 zone) set the zone_id terraform variable for this module.

Another option is to import your Route53 Zone into this module, but that is probably not the
"route" you want to go. (see what I did there?) But if you do:

$ terraform import module.mailer.aws_route53_zone.this[0] <your_route53_zone_id>

(The [0] is needed because it is a "conditional resource" and you must refer to the count
index when importing, which is always 0)

where the 'mailer' portion is the name you choose:

module "mailer" {
  source = "github.com/samstav/terraform-mailgun-aws"
}

In either case, you can refer to your zone id like this:

  "${module.mailer.zone_id}"

Since zone_id is also an output variable from the terraform-mailgun-aws module.

Renamed to terraform-mailgun-aws for Terraform Registry

02 Apr 21:59
9f91470
Compare
Choose a tag to compare

v1.1.0

11 Feb 01:25
Compare
Choose a tag to compare

Changes

98c2117 ➖ 📝 specify terraform version with required_version 🔹 Sam Stavinoha
6c58d8b ➖ make MX records optional with variable mailgun_set_mx_for_inbound 🔹 Sam Stavinoha
12db521 ➖ consistent example, dont use all caps, it's confusing 🔹 Sam Stavinoha
c56f279 ➖ since route53 adds the dot, just ensure its there 🔹 Sam Stavinoha
fb209c2 ➖ ignore 🔹 Sam Stavinoha
903b73b ➖ 📝 break this up 🔹 Sam Stavinoha
3df86e6 ➖ 📝 add info about referring to outputs 🔹 Sam Stavinoha
f5a9942 ➖ 📧 big foo 🔹 Sam Stavinoha
be0c0df ➖ 📝 add records tables 🔹 Sam Stavinoha
79b92ca ➖ demo output of --dry-run 🔹 Sam Stavinoha
f3fe0e9 ➖ links to tf about remote state & 23 🔹 Sam Stavinoha
6f4414a ➖ Update README.md 🔹 Sam Stavinoha
d858927 ➖ Update README.md 🔹 Sam Stavinoha

v1.0.0

03 Jan 06:18
Compare
Choose a tag to compare

Usage

variables file, terraform.tfvars

domain = "foo.com"
aws_region = "us-east-1"
mailgun_api_key = "key-***********"
mailgun_smtp_password = "*********"

terraform file, e.g. main.tf

provider "mailgun" {
  api_key = "${var.mailgun_api_key}"
}

provider "aws" {
  region = "${var.aws_region}"
}

module "mailer" {
  source                = "github.com/samstav/tf_mailgun_aws"
  domain                = "${var.domain}"
  mailgun_smtp_password = "${var.mailgun_smtp_password}"
}

Then

terraform get -update=true
terraform plan -out=mailer.plan
terraform apply mailer.plan