github.com/openshift/installer@v1.4.17/upi/vsphere/cluster_domain/main.tf (about)

     1  data "aws_route53_zone" "base" {
     2    name = var.base_domain
     3  }
     4  
     5  resource "aws_route53_zone" "cluster" {
     6    name          = var.cluster_domain
     7    force_destroy = true
     8  
     9    tags = {
    10      "Name"     = var.cluster_domain
    11      "Platform" = "vSphere"
    12    }
    13  }
    14  
    15  resource "aws_route53_record" "name_server" {
    16    name    = var.cluster_domain
    17    type    = "NS"
    18    ttl     = "300"
    19    zone_id = data.aws_route53_zone.base.zone_id
    20    records = aws_route53_zone.cluster.name_servers
    21  }
    22