Resource
aws.ec2.TransitGateway
Describes a transit gateway.
Example
aws.ec2.TransitGateway {
description = 'Example transit gateway'
options = {
dns_support = aws.ec2.TransitGateway.TransitGatewayRequestOptions.DnsSupport.enable
}
tags = {
Environment = 'example'
}
}
Argument Reference
description
- Type:
String - Required: No
A description of the transit gateway.
options
- Type: Struct(TransitGatewayRequestOptions)
- Required: No
The transit gateway options.
tags
- Type: Map<
String,String> - Required: No
The tags for the resource.
Enum Values
options.auto_accept_shared_attachments (AutoAcceptSharedAttachments)
| Value | DSL Identifier |
|---|---|
disable |
aws.ec2.TransitGateway.TransitGatewayRequestOptions.AutoAcceptSharedAttachments.disable |
enable |
aws.ec2.TransitGateway.TransitGatewayRequestOptions.AutoAcceptSharedAttachments.enable |
Shorthand formats: disable or AutoAcceptSharedAttachments.disable
options.default_route_table_association (DefaultRouteTableAssociation)
| Value | DSL Identifier |
|---|---|
disable |
aws.ec2.TransitGateway.TransitGatewayRequestOptions.DefaultRouteTableAssociation.disable |
enable |
aws.ec2.TransitGateway.TransitGatewayRequestOptions.DefaultRouteTableAssociation.enable |
Shorthand formats: disable or DefaultRouteTableAssociation.disable
options.default_route_table_propagation (DefaultRouteTablePropagation)
| Value | DSL Identifier |
|---|---|
disable |
aws.ec2.TransitGateway.TransitGatewayRequestOptions.DefaultRouteTablePropagation.disable |
enable |
aws.ec2.TransitGateway.TransitGatewayRequestOptions.DefaultRouteTablePropagation.enable |
Shorthand formats: disable or DefaultRouteTablePropagation.disable
options.dns_support (DnsSupport)
| Value | DSL Identifier |
|---|---|
disable |
aws.ec2.TransitGateway.TransitGatewayRequestOptions.DnsSupport.disable |
enable |
aws.ec2.TransitGateway.TransitGatewayRequestOptions.DnsSupport.enable |
Shorthand formats: disable or DnsSupport.disable
options.multicast_support (MulticastSupport)
| Value | DSL Identifier |
|---|---|
disable |
aws.ec2.TransitGateway.TransitGatewayRequestOptions.MulticastSupport.disable |
enable |
aws.ec2.TransitGateway.TransitGatewayRequestOptions.MulticastSupport.enable |
Shorthand formats: disable or MulticastSupport.disable
options.security_group_referencing_support (SecurityGroupReferencingSupport)
| Value | DSL Identifier |
|---|---|
disable |
aws.ec2.TransitGateway.TransitGatewayRequestOptions.SecurityGroupReferencingSupport.disable |
enable |
aws.ec2.TransitGateway.TransitGatewayRequestOptions.SecurityGroupReferencingSupport.enable |
Shorthand formats: disable or SecurityGroupReferencingSupport.disable
options.vpn_ecmp_support (VpnEcmpSupport)
| Value | DSL Identifier |
|---|---|
disable |
aws.ec2.TransitGateway.TransitGatewayRequestOptions.VpnEcmpSupport.disable |
enable |
aws.ec2.TransitGateway.TransitGatewayRequestOptions.VpnEcmpSupport.enable |
Shorthand formats: disable or VpnEcmpSupport.disable
Struct Definitions
options
| Field | Type | Required | Description |
|---|---|---|---|
amazon_side_asn |
Ec2AmazonSideAsn (range: 64512..=4294967294, custom validator); 64512..=65534 or 4200000000..=4294967294 |
No | A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs. The default is 64512. |
auto_accept_shared_attachments |
AutoAcceptSharedAttachments | No | Enable or disable automatic acceptance of attachment requests. Disabled by default. |
default_route_table_association |
DefaultRouteTableAssociation | No | Enable or disable automatic association with the default association route table. Enabled by default. |
default_route_table_propagation |
DefaultRouteTablePropagation | No | Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default. |
dns_support |
DnsSupport | No | Enable or disable DNS support. Enabled by default. |
multicast_support |
MulticastSupport | No | Indicates whether multicast is enabled on the transit gateway |
security_group_referencing_support |
SecurityGroupReferencingSupport | No | Enables you to reference a security group across VPCs attached to a transit gateway to simplify security group management. This option is disabled by default. For more information about security group referencing, see Security group referencing in the Amazon Web Services Transit Gateways Guide. |
transit_gateway_cidr_blocks |
List<Ec2TransitGatewayCidrBlock (custom validator); IPv4 /0..=/24 or IPv6 /0..=/64; excludes overlap with 169.254/16> (ordered) |
No | One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6. |
vpn_ecmp_support |
VpnEcmpSupport | No | Enable or disable Equal Cost Multipath Protocol support. Enabled by default. |
Attribute Reference
transit_gateway_id
- Type:
TransitGatewayId (pattern: /^tgw-[0-9a-f]{8,}$/ (Full)) - Read-only
The ID of the transit gateway.