Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

dx-gateway

This module creates following resources.

  • aws_dx_gateway
  • aws_dx_gateway_association (optional)

Requirements

Name Version
terraform >= 1.5
aws >= 4.63

Providers

Name Version
aws 5.19.0

Modules

No modules.

Resources

Name Type
aws_dx_gateway.this resource
aws_dx_gateway_association.external resource
aws_dx_gateway_association.this resource

Inputs

Name Description Type Default Required
asn (Required) The ASN to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. number n/a yes
name (Required) Desired name for the DX Gateway resources. string n/a yes
cross_account_gateway_associations (Optional) The configuration to associate a list of VPN Gateway or Transit Gateway with a Direct Connect Gateway in cross account. Each block of cross_account_gateway_associations as defined below.
(Required) account_id - The ID of the AWS account that owns the Virtual Private Gateway or Transit Gateway.
(Required) proposal_id - The ID of the request proposal.
(Optional) allowed_prefixes - A list of VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured.
list(object({
account_id = string
proposal_id = string
allowed_prefixes = optional(list(string), [])
}))
[] no
gateway_associations (Optional) The configuration to associate a list of VPN Gateway or Transit Gateway with a Direct Connect Gateway in same account. Each block of gateway_associations as defined below.
(Required) gateway_id - The ID of the VPN Gateway or Transit Gateway with which to associate. Used for single account Direct Connect gateway associations.
(Optional) allowed_prefixes - A list of VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured.
list(object({
gateway_id = string
allowed_prefixes = optional(list(string), [])
}))
[] no

Outputs

Name Description
asn The ASN of the Amazon side of the connection.
cross_account_gateway_associations Associated VGW or Transit gateway with a Direct Connect Gateway in cross account.
gateway_associations Associated VGW or Transit gateway with a Direct Connect Gateway in same account.
id The ID of the DX Gateway.
name The name of the DX Gateway.
owner_account_id AWS Account ID of the gateway.