Carina

Resource

aws.ec2.TransitGatewayAttachment

Describes a VPC attachment.

Example

let vpc = aws.ec2.Vpc {
  cidr_block = '10.0.0.0/16'

  tags = {
    Environment = 'example'
  }
}

let subnet = aws.ec2.Subnet {
  vpc_id            = vpc.vpc_id
  cidr_block        = '10.0.1.0/24'
  availability_zone = aws.AvailabilityZone.ZoneName.ap_northeast_1a

  tags = {
    Environment = 'example'
  }
}

let transit_gateway = aws.ec2.TransitGateway {
  description = 'Example transit gateway'

  tags = {
    Environment = 'example'
  }
}

aws.ec2.TransitGatewayAttachment {
  subnet_ids         = [subnet.subnet_id]
  transit_gateway_id = transit_gateway.transit_gateway_id
  vpc_id             = vpc.vpc_id

  tags = {
    Environment = 'example'
  }
}

Argument Reference

options

The VPC attachment options.

subnet_ids

The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.

transit_gateway_id

The ID of the transit gateway.

vpc_id

The ID of the VPC.

tags

The tags for the resource.

Enum Values

options.appliance_mode_support (ApplianceModeSupport)

Value DSL Identifier
disable aws.ec2.TransitGatewayAttachment.CreateTransitGatewayVpcAttachmentRequestOptions.ApplianceModeSupport.disable
enable aws.ec2.TransitGatewayAttachment.CreateTransitGatewayVpcAttachmentRequestOptions.ApplianceModeSupport.enable

Shorthand formats: disable or ApplianceModeSupport.disable

options.dns_support (DnsSupport)

Value DSL Identifier
disable aws.ec2.TransitGatewayAttachment.CreateTransitGatewayVpcAttachmentRequestOptions.DnsSupport.disable
enable aws.ec2.TransitGatewayAttachment.CreateTransitGatewayVpcAttachmentRequestOptions.DnsSupport.enable

Shorthand formats: disable or DnsSupport.disable

options.ipv6_support (Ipv6Support)

Value DSL Identifier
disable aws.ec2.TransitGatewayAttachment.CreateTransitGatewayVpcAttachmentRequestOptions.Ipv6Support.disable
enable aws.ec2.TransitGatewayAttachment.CreateTransitGatewayVpcAttachmentRequestOptions.Ipv6Support.enable

Shorthand formats: disable or Ipv6Support.disable

options.security_group_referencing_support (SecurityGroupReferencingSupport)

Value DSL Identifier
disable aws.ec2.TransitGatewayAttachment.CreateTransitGatewayVpcAttachmentRequestOptions.SecurityGroupReferencingSupport.disable
enable aws.ec2.TransitGatewayAttachment.CreateTransitGatewayVpcAttachmentRequestOptions.SecurityGroupReferencingSupport.enable

Shorthand formats: disable or SecurityGroupReferencingSupport.disable

Struct Definitions

options

Field Type Required Description
appliance_mode_support ApplianceModeSupport No Enable or disable support for appliance mode. If enabled, a traffic flow between a source and destination uses the same Availability Zone for the VPC attachment for the lifetime of that flow. The default is disable.
dns_support DnsSupport No Enable or disable DNS support. The default is enable.
ipv6_support Ipv6Support No Specifies whether IPv6 support is enabled for the attachment. When enabled, the transit gateway network interface receives an IPv6 address. When you enable route propagation, IPv6 VPC CIDRs propagate to the transit gateway route tables. When disabled, the network interface does not receive an IPv6 address, and IPv6 routes do not propagate. The setting does not filter IPv6 traffic. The default is disable.
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 set to enable by default. However, at the transit gateway level the default is set to disable. For more information about security group referencing, see Security group referencing in the Amazon Web Services Transit Gateways Guide.

Attribute Reference

transit_gateway_attachment_id

The ID of the attachment.