back
terraform {
required_providers {
aviatrix = ">= 2.18.2"
}
}
top
module "aviatrix_vgw_conn" {
source = "./modules/aviatrix/r/aviatrix_vgw_conn"
# bgp_local_as_num - (required) is a type of string
bgp_local_as_num = null
# bgp_vgw_account - (required) is a type of string
bgp_vgw_account = null
# bgp_vgw_id - (required) is a type of string
bgp_vgw_id = null
# bgp_vgw_region - (required) is a type of string
bgp_vgw_region = null
# conn_name - (required) is a type of string
conn_name = null
# enable_learned_cidrs_approval - (optional) is a type of bool
enable_learned_cidrs_approval = null
# gw_name - (required) is a type of string
gw_name = null
# manual_bgp_advertised_cidrs - (optional) is a type of set of string
manual_bgp_advertised_cidrs = []
# vpc_id - (required) is a type of string
vpc_id = null
}
top
variable "bgp_local_as_num" {
description = "(required) - BGP local ASN (Autonomous System Number). Integer between 1-4294967294."
type = string
}
variable "bgp_vgw_account" {
description = "(required) - Account of AWS's VGW that is used for this connection."
type = string
}
variable "bgp_vgw_id" {
description = "(required) - Id of AWS's VGW that is used for this connection."
type = string
}
variable "bgp_vgw_region" {
description = "(required) - Region of AWS's VGW that is used for this connection."
type = string
}
variable "conn_name" {
description = "(required) - The name of the VGW connection which is going to be created."
type = string
}
variable "enable_learned_cidrs_approval" {
description = "(optional) - Enable learned CIDR approval for the connection. Requires the transit_gateway's 'learned_cidrs_approval_mode' attribute be set to 'connection'. Valid values: true, false. Default value: false. Available as of provider version R2.18+."
type = bool
default = null
}
variable "gw_name" {
description = "(required) - Name of the Transit Gateway."
type = string
}
variable "manual_bgp_advertised_cidrs" {
description = "(optional) - Configure manual BGP advertised CIDRs for this connection. Available as of provider version R2.18+."
type = set(string)
default = null
}
variable "vpc_id" {
description = "(required) - VPC-ID where the Transit Gateway is located."
type = string
}
top
resource "aviatrix_vgw_conn" "this" {
# bgp_local_as_num - (required) is a type of string
bgp_local_as_num = var.bgp_local_as_num
# bgp_vgw_account - (required) is a type of string
bgp_vgw_account = var.bgp_vgw_account
# bgp_vgw_id - (required) is a type of string
bgp_vgw_id = var.bgp_vgw_id
# bgp_vgw_region - (required) is a type of string
bgp_vgw_region = var.bgp_vgw_region
# conn_name - (required) is a type of string
conn_name = var.conn_name
# enable_learned_cidrs_approval - (optional) is a type of bool
enable_learned_cidrs_approval = var.enable_learned_cidrs_approval
# gw_name - (required) is a type of string
gw_name = var.gw_name
# manual_bgp_advertised_cidrs - (optional) is a type of set of string
manual_bgp_advertised_cidrs = var.manual_bgp_advertised_cidrs
# vpc_id - (required) is a type of string
vpc_id = var.vpc_id
}
top
output "id" {
description = "returns a string"
value = aviatrix_vgw_conn.this.id
}
output "this" {
value = aviatrix_vgw_conn.this
}
top