mirror of
https://github.com/dap-ps/infra-dapps.git
synced 2025-02-24 01:48:15 +00:00
37 lines
839 B
HCL
37 lines
839 B
HCL
/* Gandi DNS ------------------------------------*/
|
|
|
|
resource "gandi_zone" "dap_ps_zone" {
|
|
name = "${var.public_domain} zone"
|
|
}
|
|
|
|
resource "gandi_domainattachment" "dap_ps" {
|
|
domain = "${var.public_domain}"
|
|
zone = "${gandi_zone.dap_ps_zone.id}"
|
|
}
|
|
|
|
/* SES EMail Fowarding --------------------------*/
|
|
|
|
resource "gandi_zonerecord" "dap_ps_mx" {
|
|
zone = "${gandi_zone.dap_ps_zone.id}"
|
|
name = "@"
|
|
type = "MX"
|
|
ttl = 3600
|
|
values = ["10 inbound-smtp.us-east-1.amazonaws.com."]
|
|
}
|
|
|
|
/* MAIL SITE ------------------------------------*/
|
|
|
|
/* This is the main site hosted on GitHub */
|
|
resource "gandi_zonerecord" "dap_ps_site" {
|
|
zone = "${gandi_zone.dap_ps_zone.id}"
|
|
name = "@"
|
|
type = "A"
|
|
ttl = 3600
|
|
values = [
|
|
"185.199.108.153",
|
|
"185.199.109.153",
|
|
"185.199.110.153",
|
|
"185.199.111.153",
|
|
]
|
|
}
|