terraform-provider-mailgun icon indicating copy to clipboard operation
terraform-provider-mailgun copied to clipboard

Add support for secure tracking x509 certificate (re)generation

Open Szasza opened this issue 5 months ago • 0 comments

Terraform Version

All.

Affected Resource(s)

  • mailgun_secure_tracking (new)

Example Terraform Configuration Files

resource "mailgun_domain" "default" {
  name           = "test.example.com"
  region         = "us"
  open_tracking  = "yes"
  click_tracking = "yes"
  web_scheme     = "https"
}

resource "mailgun_secure_tracking" "default" {
  domain = "email.test.example.com"

  depends_on = [mailgun_domain.default]
}

Expected Behavior

A secure tracking certificate is getting generated. Regeneration can be achieved by either tainting the mailgun_secure_tracking resource, or deleting and re-adding it, or potentially by adding an extra boolean flag as an argument.

Important Factoids

  • The reason why this resource is needed is that the Mailgun API doesn't generate an SSL certificate for the tracking domain when web_scheme = "https" is provided via the API. It works however if https is selected via the UI.

References

Szasza avatar Sep 24 '24 00:09 Szasza