mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
providers/mailgun: smtp_password is required
This commit is contained in:
parent
872f852a59
commit
b71ff28871
@ -32,7 +32,7 @@ func resourceMailgunDomain() *schema.Resource {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
ForceNew: true,
|
||||
Optional: true,
|
||||
Required: true,
|
||||
},
|
||||
|
||||
"smtp_login": &schema.Schema{
|
||||
|
@ -66,7 +66,7 @@ func testAccCheckMailgunDomainAttributes(Domain *mailgun.Domain) resource.TestCh
|
||||
}
|
||||
|
||||
if Domain.Wildcard != true {
|
||||
return fmt.Errorf("Bad wildcard: %s", Domain.SpamAction)
|
||||
return fmt.Errorf("Bad wildcard: %s", Domain.Wildcard)
|
||||
}
|
||||
|
||||
if Domain.SmtpPassword != "foobar" {
|
||||
|
@ -13,8 +13,9 @@ create and manage applications on Mailgun.
|
||||
|
||||
```
|
||||
# Create a new mailgun domain
|
||||
resource "mailgun_app" "default" {
|
||||
resource "mailgun_domain" "default" {
|
||||
name = "test.example.com"
|
||||
smtp_password = "foobar"
|
||||
}
|
||||
|
||||
# Create SMTP Credentials
|
||||
@ -30,7 +31,7 @@ resource "mailgun_domain" "default" {
|
||||
The following arguments are supported:
|
||||
|
||||
* `name` - (Required) The domain to add to Mailgun
|
||||
* `smtp_password` - (Optional) Password for SMTP authentication
|
||||
* `smtp_password` - (Required) Password for SMTP authentication
|
||||
* `spam_action` - (Optional) `disabled` or `tag` Disable, no spam
|
||||
filtering will occur for inbound messages. Tag, messages
|
||||
will be tagged wtih a spam header.
|
||||
|
Loading…
Reference in New Issue
Block a user