You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
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:
Setting region = "" works, and sets the region to "US" on the user interface.
Environment
The text was updated successfully, but these errors were encountered: