directconnect

BorisLabs/directconnect/aws

Terraform Module HCL AWS ⏱ stale 1y 7mo

Terraform module to setup AWS Direct Connect resources

Install

module "directconnect" {
source = "BorisLabs/directconnect/aws"
version = "0.3.0"
}
⭐ Source on GitHub 📦 Registry page

README

AWS Direct Connect Terraform Module Terraform module which creates Direct Connect resources on AWS. This module aims to provide all connotations of a Direct Connect setup for AWS. Usage ``HCL module "gateway_and_attached_vif" { source = "BorisLabs/directconnect/aws" version = "0.0.1" create_dx_gateway = true dx_gateway_name = "dx-gw-01" dx_gateway_bgp_asn = "65300" create_dx_private_vif = true dx_connection_id = "dxcon-1234abcd" dx_private_vif_name = "dx-private-vif-01-01-a" dx_private_vif_address_family = "ipv4" dx_private_vif_customer_address = "169.254.254.102/30" dx_private_vif_amazon_address = "169.254.254.101/30" dx_private_vif_bgp_asn = "65200" dx_private_vif_vlan_id = "200" dx_private_vif_tags = { Gateway = "dx-gw-01" Enviroment = "Development" } } `` Examples - Single VIF - DX Con

Inputs (50)

NameTypeDescriptionDefault
crossaccount_dx_gatewayboolCreate a Cross Account DX Proposal & acceptance conflicts with associate_dx_gatefalse
dx_connection_namestringName of the DX Connectionnull
dx_gateway_bgp_asnnumberBGP ASN For DX Gateway65534
dx_private_vif_namestringName of the Virtual Interface"this-is-a-default-name"
dx_public_vif_address_familystringThe Address Family for the BGP Peer ipv4 or ipv6"ipv4"
dx_public_vif_bgp_auth_keystringAuth key for BGP Configurationnull
create_dx_connectionboolCreate a DX Connectionfalse
dx_private_vif_vlan_idnumberThe VLAN ID to use on the virtual interface4094
dx_private_hosted_vif_bgp_asnnumberBGP ASN for client Hosted VIF65001
allowed_prefixesset(string)List of allowed prefixes to advertise to the Direct Connect Gatewaynull
create_dx_public_vifboolCreate a DX Public Virtual Interfacefalse
vgw_idstringAWS ID of the Virtual Private Gateway if attaching one use in conjunction with anull
vpc_idstringRequired if you are creating and attach DX & VGWnull
dx_gateway_namestringDX Gateway name"dx-gateway-default-name"
create_dx_gatewayboolCreate a DX Gatewayfalse
dx_lag_idstringID of LAG Group which can be used to create a VIF onnull
dx_connection_idstringID Of the DX Connectionnull
dx_private_hosted_vif_owner_account_idstringThe AWS account that will own the new virtual interface.null
dx_bgp_customer_addressstringCustomer BGP Address, required for Public VIFnull
dx_lag_namestringName of the Lag groupnull
… and 10 more inputs

Outputs (13)

dx_connection_bandwidth — Bandwidth of the connection
dx_private_hosted_vif_id — The ID of the virtual interface.
dx_private_hosted_vif_arn — The ARN of the virtual interface
dx_public_vif_id — The ID of the public virtual interface.
dx_gateway_id — The ID of the gateway
vgw_id — The ID of the VPN Gateway
dx_connection_id — The ID of the connection
dx_connection_name — The connection name
dx_public_vif_arn — The ARN of the public virtual interface.
dx_private_vif_arn — The ARN of the public virtual interface.
dx_private_vif_id — The ID of the public virtual interface.
dx_gateway_name — The name of the gateway
dx_connection_arn — The ARN of the connection

Resources (12)

aws_dx_bgp_peeraws_dx_connectionaws_dx_connection_associationaws_dx_gatewayaws_dx_gateway_associationaws_dx_gateway_association_proposalaws_dx_hosted_private_virtual_interfaceaws_dx_hosted_private_virtual_interface_accepteraws_dx_lagaws_dx_private_virtual_interfaceaws_dx_public_virtual_interfaceaws_vpn_gateway

Details

FrameworkTerraform Module
LanguageHCL
Version0.3.0
Cloud AWS
★ Stars14
Forks19
Total downloads9.5k
Inputs50
Outputs13
Resources12
Examples4
LicenseApache-2.0
NamespaceBorisLabs
Updated