Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cc0c59c

Browse files
committedJan 12, 2020
chore: add terraform configuration for CNAME-type DNS records.
Part of #1000 [skip ci]
1 parent 57b196d commit cc0c59c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎infra/terraform/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
$ terraform import digitalocean_record.ns3 my-stamps.ru,<id>
2222
$ terraform import digitalocean_record.mx1 my-stamps.ru,<id>
2323
$ terraform import digitalocean_record.mx2 my-stamps.ru,<id>
24+
$ terraform import digitalocean_record.email my-stamps.ru,<id>
2425
```
2526
The ids can be obtained by API:
2627
- https://developers.digitalocean.com/documentation/v2/#list-all-droplets

‎infra/terraform/my-stamps.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,9 @@ resource "digitalocean_record" "mx2" {
6868
value = "mxb.mailgun.org."
6969
priority = 10
7070
}
71+
resource "digitalocean_record" "email" {
72+
domain = digitalocean_domain.site.name
73+
type = "CNAME"
74+
name = "email"
75+
value = "mailgun.org."
76+
}

0 commit comments

Comments
 (0)
Please sign in to comment.