Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add autonomys.net DNS records to terraform #319

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions dns/autonomys.net
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
resource "cloudflare_record" "autonomys_net_1" {
name = "autonomys.net"
proxied = false
ttl = 3600
type = "A"
value = "52.223.52.2"
zone_id = data.cloudflare_zone.autonomys_net.id
}

resource "cloudflare_record" "autonomys_net_2" {
name = "autonomys.net"
proxied = false
ttl = 3600
type = "A"
value = "35.71.142.77"
zone_id = data.cloudflare_zone.autonomys_net.id
}

resource "cloudflare_record" "autonomys_net_www" {
name = "www"
proxied = false
ttl = 3600
type = "CNAME"
value = "sites.framer.app"
zone_id = data.cloudflare_zone.autonomys_net.id
}

resource "cloudflare_record" "autonomys_net_academy" {
name = "academy"
proxied = false
ttl = 3600
type = "CNAME"
value = "a80ab473c4-hosting.gitbook.io"
zone_id = data.cloudflare_zone.autonomys_net.id
}

// mailserver records for autonomys.net
resource "cloudflare_record" "mailserver_mx_1" {
name = "autonomys.net"
comment = "MX record pointing to our preferred mailserver"
priority = 1
proxied = false
ttl = 3600
type = "MX"
value = "aspmx.l.google.com"
zone_id = data.cloudflare_zone.autonomys_net.id
}

resource "cloudflare_record" "mailserver_mx_2" {
name = "autonomys.net"
comment = "MX record pointing to our preferred mailserver"
priority = 5
proxied = false
ttl = 3600
type = "MX"
value = "alt1.aspmx.l.google.com"
zone_id = data.cloudflare_zone.autonomys_net.id
}

resource "cloudflare_record" "mailserver_mx_3" {
name = "autonomys.net"
comment = "MX record pointing to our preferred mailserver"
priority = 5
proxied = false
ttl = 3600
type = "MX"
value = "alt2.aspmx.l.google.com"
zone_id = data.cloudflare_zone.autonomys_net.id
}

resource "cloudflare_record" "mailserver_mx_4" {
name = "autonomys.net"
comment = "MX record pointing to our preferred mailserver"
priority = 10
proxied = false
ttl = 3600
type = "MX"
value = "alt3.aspmx.l.google.com"
zone_id = data.cloudflare_zone.autonomys_net.id
}

resource "cloudflare_record" "mailserver_mx_5" {
name = "autonomys.net"
comment = "MX record pointing to our preferred mailserver"
priority = 10
proxied = false
ttl = 3600
type = "MX"
value = "alt4.aspmx.l.google.com"
zone_id = data.cloudflare_zone.autonomys_net.id
}
5 changes: 5 additions & 0 deletions dns/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ data "cloudflare_zone" "continuim_cc" {
data "cloudflare_zone" "continuum_co" {
name = "continuum.co"
}

// ## autonomys.net zone ##
data "cloudflare_zone" "autonomys_net" {
name = "autonomys.net"
}
5 changes: 5 additions & 0 deletions dns/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ output "cloudflare-continuim-cc-zone" {
value = data.cloudflare_zone.continuim_cc.id
description = "Cloudflare's continuim.cc Zone ID"
}

output "cloudflare-autonomys-net-zone" {
value = data.cloudflare_zone.autonomys_net.id
description = "Cloudflare's autonomys.net Zone ID"
}