Skip to content

Commit b71ff28

Browse files
committed
providers/mailgun: smtp_password is required
1 parent 872f852 commit b71ff28

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

builtin/providers/mailgun/resource_mailgun_domain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func resourceMailgunDomain() *schema.Resource {
3232
Type: schema.TypeString,
3333
Computed: true,
3434
ForceNew: true,
35-
Optional: true,
35+
Required: true,
3636
},
3737

3838
"smtp_login": &schema.Schema{

builtin/providers/mailgun/resource_mailgun_domain_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func testAccCheckMailgunDomainAttributes(Domain *mailgun.Domain) resource.TestCh
6666
}
6767

6868
if Domain.Wildcard != true {
69-
return fmt.Errorf("Bad wildcard: %s", Domain.SpamAction)
69+
return fmt.Errorf("Bad wildcard: %s", Domain.Wildcard)
7070
}
7171

7272
if Domain.SmtpPassword != "foobar" {

website/source/docs/providers/mailgun/r/domain.html.markdown

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ create and manage applications on Mailgun.
1313

1414
```
1515
# Create a new mailgun domain
16-
resource "mailgun_app" "default" {
16+
resource "mailgun_domain" "default" {
1717
name = "test.example.com"
18+
smtp_password = "foobar"
1819
}
1920
2021
# Create SMTP Credentials
@@ -30,7 +31,7 @@ resource "mailgun_domain" "default" {
3031
The following arguments are supported:
3132

3233
* `name` - (Required) The domain to add to Mailgun
33-
* `smtp_password` - (Optional) Password for SMTP authentication
34+
* `smtp_password` - (Required) Password for SMTP authentication
3435
* `spam_action` - (Optional) `disabled` or `tag` Disable, no spam
3536
filtering will occur for inbound messages. Tag, messages
3637
will be tagged wtih a spam header.

0 commit comments

Comments
 (0)