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

Add the retrieval of "dkim_selector" for "mailgun_domain"

Open Szasza opened this issue 1 year ago • 0 comments

Terraform Version

v1.4.4

Affected Resource(s)

  • mailgun_domain

Expected Behavior

No change should be shown in the last terraform plan after importing a Mailgun domain which matches the Terraform configuration.

Actual Behavior

Terraform wants to recreate the mailgun_domain resource.

Steps to Reproduce

  1. Set up a domain in Mailgun with the DKIM selector being MX. No need to verify the domain.
  2. Write the corresponding configuration in Terraform with dkim_selector = "mx".
  3. Import the Mailgun domain.
  4. Run terraform plan.

Note

It seems like that resource_mailgun_domain.go's resourceMailgunDomainRetrieve function doesn't support the retrieval of the dkim_selector property.

Szasza avatar Apr 13 '23 20:04 Szasza