File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 19
19
$ terraform import digitalocean_record.ns1 my-stamps.ru,<id>
20
20
$ terraform import digitalocean_record.ns2 my-stamps.ru,<id>
21
21
$ terraform import digitalocean_record.ns3 my-stamps.ru,<id>
22
+ $ terraform import digitalocean_record.mx1 my-stamps.ru,<id>
23
+ $ terraform import digitalocean_record.mx2 my-stamps.ru,<id>
22
24
```
23
25
The ids can be obtained by API:
24
26
- https://developers.digitalocean.com/documentation/v2/#list-all-droplets
Original file line number Diff line number Diff line change @@ -54,3 +54,17 @@ resource "digitalocean_record" "ns3" {
54
54
name = " @" # <-- to match the current settings. It's better to use "ns3" instead
55
55
value = " ns3.digitalocean.com."
56
56
}
57
+ resource "digitalocean_record" "mx1" {
58
+ domain = digitalocean_domain. site . name
59
+ type = " MX"
60
+ name = " @" # <-- to match the current settings. It's better to use "mx1" instead
61
+ value = " mxa.mailgun.org."
62
+ priority = 10
63
+ }
64
+ resource "digitalocean_record" "mx2" {
65
+ domain = digitalocean_domain. site . name
66
+ type = " MX"
67
+ name = " @" # <-- to match the current settings. It's better to use "mx2" instead
68
+ value = " mxb.mailgun.org."
69
+ priority = 10
70
+ }
You can’t perform that action at this time.
0 commit comments