@cryptotaxi247 / infra-1 / commits / d64c099c

terraform: add DNS skeleton

There is some import issue

zimbatm committed Oct 4, 2021 at 13:16 UTC d64c099c2d31c30bde865242c25909b7832a5d32
1 file changed +23
terraform/dns.tf new
+23
@@ -0,0 +1,23 @@
1 +# Our DNS is managed by Netlify
2 +
3 +locals {
4 + # Shortcut to keep this a bit leaner
5 + zone_id = netlify_dns_zone.nixos.id
6 +}
7 +
8 +resource "netlify_dns_zone" "nixos" {
9 + site_id = ""
10 + name = "nixos.org"
11 +}
12 +
13 +# Import fails with:
14 +#
15 +# Error: &{0 } (*models.Error) is not supported by the TextConsumer, can be resolved by supporting TextUnmarshaler interface
16 +#
17 +# resource "netlify_dns_record" "test" {
18 +# zone_id = local.zone_id
19 +#
20 +# hostname = "nixos.org"
21 +# type = "NETLIFY"
22 +# value = "nixos-homepage.netlify.com"
23 +# }