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

Add support for DNS setting verification

Open Szasza opened this issue 9 months ago • 0 comments

As per the Mailgun API there is a programmatic way to trigger DNS setting verification which would be great to be available via the provider.

Purpose-wise there are three groups of records in Mailgun: sending, receiving, and tracking. It would be ideal to support partial verification as some features may be used, some may not. This however is not supported by the Mailgun API so it would need to be handled in the provider.

Affected Resource(s)

Please list the resources as a list, for example:

  • mailgun_domain_dns_verification (new resource)

Example Terraform Configuration

resource "mailgun_domain_dns_verification" "example_com" {
  name = "example.com"

  sending   = true
  receiving = false
  tracking  = true
}

References

Mailgun API documentation: https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domains/#tag/Domains/operation/httpapi.(*T).Verify-fm-10

Szasza avatar May 06 '24 03:05 Szasza