github.com/telepresenceio/telepresence/v2@v2.20.0-pro.6.0.20240517030216-236ea954e789/test-infra/aws-vpn/locals.tf (about)

     1  data "aws_availability_zones" "available" {
     2    state = "available"
     3  }
     4  
     5  locals {
     6    global_tags = {
     7      "environment" = "${var.child_subdomain}-eks-vpn"
     8    }
     9    availability_zones = [for x in ["a", "b", "c"] : "${var.aws_region}${x}"]
    10    prefix             = "tp-test-vpn-"
    11  }
    12  
    13  variable "parent_domain" {
    14    type        = string
    15    description = "An already existing DNS zone to create child_dns_zone in"
    16  }
    17  
    18  variable "child_subdomain" {
    19    type        = string
    20    description = "The prefix to a DNS zone to create. e.g. if parent_domain is 'foo.com', this should be 'bar', to create a hosted zone 'foo.bar.com'"
    21  }
    22  
    23  variable "child_subdomain_comment" {
    24    type        = string
    25    description = "The description of the created DNS zone; will be visible in the AWS console"
    26  }
    27  
    28  variable "aws_region" {
    29    type        = string
    30    description = "The AWS region to provision resources in"
    31  }
    32  
    33  variable "vpc_cidr" {
    34    type        = string
    35    description = "The CIDR for the VPN"
    36  }
    37  
    38  variable "vpn_client_cidr" {
    39    type        = string
    40    description = "The CIDR assigned to clients of the VPN"
    41  }
    42  
    43  variable "split_tunnel" {
    44    type        = bool
    45    description = "Whether to set up split tunneling for the VPN"
    46  }
    47  
    48  variable "service_cidr" {
    49    type        = string
    50    description = "The CIDR to put services in"
    51  }