Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation Only - Mailgun Provider #160

Closed
spenceclark opened this issue May 13, 2022 · 1 comment
Closed

Documentation Only - Mailgun Provider #160

spenceclark opened this issue May 13, 2022 · 1 comment
Labels
🪲 bug Something isn't working

Comments

@spenceclark
Copy link

Describe the problem

When setting up a custom email provider using Mailgun, the documentation should probably be clear that the "region" setting which is either "US" or "EU" on the UI, needs to be either "eu" or "" in the terraform code.

Setting region to "us" causes an unclear error message:

Error: 400 Bad Request: Payload validation error: 'None of the valid schemas were met' on property credentials (Credentials required to use the provider). Inner errors: [ Payload validation error: 'Additional properties not allowed: domain,region' on property credentials ({description}). (also) Payload validation error: 'Additional properties not allowed: domain,api_key' on property credentials ({description}). (also) Payload validation error: 'Additional properties not allowed: domain,region,api_key' on property credentials ({description}). (also) Payload validation error: 'Additional properties not allowed: domain' on property credentials ({description}). (also) Payload validation error: 'Invalid value "us"' on property credentials.region (Set to <code>eu</code> if your domain is provisioned to use Mailgun's EU region. Otherwise, set to <code>null</code>). ].

What was the expected behavior?

I expected setting the string to "US" would set the value to "US"

Reproduction

Try to create a resource:

resource "auth0_email" "mailgun" {
  name = "mailgun"
  enabled = true
  default_from_address = "test@test.com"
  credentials {
    api_key = "abc123"
    domain = "test.com"
    region = "us"
  }
}

Setting region = "" works, and sets the region to "US" on the user interface.

Environment

  • Terraform version: 1.1.9
  • Provider version: 0.30.2
@spenceclark spenceclark added the 🪲 bug Something isn't working label May 13, 2022
@spenceclark
Copy link
Author

Actually, I clearly didn't read the error message fullly. It does say at the end to set it to null if not EU. closing issue. 😳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant