Skip to content

Commit

Permalink
chore(dns): adding DNS records
Browse files Browse the repository at this point in the history
  • Loading branch information
kiraum committed Sep 29, 2024
1 parent 95f5f01 commit c39e7c1
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions environments/prod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,61 @@ module "route53" {
type = "A"
alias = {
name = "dpop20p5u4112.cloudfront.net"
zone_id = "Z2FDTNDATAQYW2" # This is the hosted zone ID for CloudFront
zone_id = "Z2FDTNDATAQYW2"
evaluate_target_health = false
}
},
{
name = "www"
type = "CNAME"
ttl = 301
ttl = 300
records = ["dpop20p5u4112.cloudfront.net"]
},
{
name = ""
type = "MX"
ttl = 300
records = ["10 mail.protonmail.ch", "20 mailsec.protonmail.ch"]
},
{
name = ""
type = "TXT"
ttl = 300
records = [
"protonmail-verification=4fd8734e27858d5bb727e0b811f506185942856d",
"v=spf1 include:_spf.protonmail.ch ~all"
]
},
{
name = "_dmarc"
type = "TXT"
ttl = 300
records = ["v=DMARC1; p=quarantine"]
},
{
name = "protonmail._domainkey"
type = "CNAME"
ttl = 300
records = ["protonmail.domainkey.dempd74kuxcjabpnbahdxnyoscyzm34xj6e5of6vyqwjrw64bwqoq.domains.proton.ch."]
},
{
name = "protonmail2._domainkey"
type = "CNAME"
ttl = 300
records = ["protonmail2.domainkey.dempd74kuxcjabpnbahdxnyoscyzm34xj6e5of6vyqwjrw64bwqoq.domains.proton.ch."]
},
{
name = "protonmail3._domainkey"
type = "CNAME"
ttl = 300
records = ["protonmail3.domainkey.dempd74kuxcjabpnbahdxnyoscyzm34xj6e5of6vyqwjrw64bwqoq.domains.proton.ch."]
}
]
}
}
}


module "static_website" {
source = "../../modules/static_website"

Expand Down

0 comments on commit c39e7c1

Please sign in to comment.