variables.tf
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
variable "peering_connections" {
  description = <<-EOT
    Map of VPC peering connections. peer_vpc_id is the accepter VPC.
    peer_account_id and peer_region are required for cross-account / cross-region peering.
    auto_accept requires both VPCs in the same account and region.
    EOT
  type = map(object({
    requester_vpc_id       = string
    peer_vpc_id            = string
    peer_account_id        = optional(string, null)
    peer_region            = optional(string, null)
    auto_accept            = optional(bool, false)
    allow_remote_vpc_dns   = optional(bool, true)
    requester_route_tables = optional(list(string), [])
    accepter_route_tables  = optional(list(string), [])
    requester_cidr         = optional(string, null)
    accepter_cidr          = optional(string, null)
  }))
  default = {}
}

variable "tags" {
  description = "Resource tags to apply to all resources"
  type        = map(string)
  default     = {}
}