/ dns.tf
dns.tf
 1  /* Configure managing domain with Route53 Hosted Zone */
 2  resource "aws_route53_zone" "webiny" {
 3    name    = "get.status.im"
 4    comment = "Domain for Webiny hosts."
 5  }
 6  
 7  resource "cloudflare_record" "webiny" {
 8    zone_id    = local.zones["status.im"]
 9    name       = "get"
10    type       = "NS"
11    value      = aws_route53_zone.webiny.name_servers[count.index]
12    #count     = length(aws_route53_zone.webiny.name_servers)
13    count      = 4 /* Terraform is trash and can't do this dynamically */
14    proxied    = false
15    depends_on = [ aws_route53_zone.webiny ]
16  }