File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 22
22
$ terraform import digitalocean_record.mx1 my-stamps.ru,<id>
23
23
$ terraform import digitalocean_record.mx2 my-stamps.ru,<id>
24
24
$ terraform import digitalocean_record.email my-stamps.ru,<id>
25
+ $ terraform import digitalocean_record.spf my-stamps.ru,<id>
26
+ $ terraform import digitalocean_record.verification my-stamps.ru,<id>
27
+ $ terraform import digitalocean_record.domain_key my-stamps.ru,<id>
25
28
```
26
29
The ids can be obtained by API:
27
30
- https://developers.digitalocean.com/documentation/v2/#list-all-droplets
Original file line number Diff line number Diff line change @@ -74,3 +74,21 @@ resource "digitalocean_record" "email" {
74
74
name = " email"
75
75
value = " mailgun.org."
76
76
}
77
+ resource "digitalocean_record" "verification" {
78
+ domain = digitalocean_domain. site . name
79
+ type = " TXT"
80
+ name = " @" # <-- to match the current settings. It's better to use "verification" instead
81
+ value = " globalsign-domain-verification=405tmKGIyZt12MvKu_nJV1oCJ_e-MEjf_26bcFQX0t"
82
+ }
83
+ resource "digitalocean_record" "spf" {
84
+ domain = digitalocean_domain. site . name
85
+ type = " TXT"
86
+ name = " @" # <-- to match the current settings. It's better to use "spf" instead
87
+ value = " v=spf1 include:mailgun.org ~all"
88
+ }
89
+ resource "digitalocean_record" "domain_key" {
90
+ domain = digitalocean_domain. site . name
91
+ type = " TXT"
92
+ name = " mx._domainkey"
93
+ value = " k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDLo/TZgHYIM7xrU9dBJCJTTsP90rGhHuyTqSrC3LT+T3vsH5azrz1+9Dm86xz6TpcmrHV1WgmSnw72C++AXstlS8CEg6Z6XVuxMDKsMnMVEWDm1bpESy+h29Ns3kY/EzMTaF1V88ICmr6fSpQIOd9u/lZpsABjfh2wfag1rqWcGwIDAQAB"
94
+ }
You can’t perform that action at this time.
0 commit comments