Skip to main content

Transit Gateway Attachment

Provides a Transit Gateway Attachment

exports.createResources = () => [
{
type: "TransitGatewayAttachment",
group: "EC2",
name: "tgw-attach::tgw::vpn::vpn-connection",
readOnly: true,
properties: ({}) => ({
ResourceType: "vpn",
}),
dependencies: ({}) => ({
transitGateway: "tgw",
vpnConnection: "vpn-connection",
}),
},
];

Examples

### Properties

Dependencies

List

gc l -t EC2::TransitGatewayAttachment
Listing resources on 1 provider: aws
✓ aws us-east-1
✓ Initialising
✓ Listing 1/1
┌──────────────────────────────────────────────────────────────────────────────────────────────┐
│ 1 EC2::TransitGatewayAttachment from aws │
├──────────────────────────────────────────────────────────────────────────────────────────────┤
│ name: tgw-attach::tgw-09547b88bbdb2ac86::vpn::vpn-0b9245694abbd2b12 │
│ managedByUs: NO │
│ live: │
│ TransitGatewayAttachmentId: tgw-attach-05c106d9430c6ee85 │
│ TransitGatewayId: tgw-09547b88bbdb2ac86 │
│ TransitGatewayOwnerId: 840541460064 │
│ ResourceOwnerId: 840541460064 │
│ ResourceType: vpn │
│ ResourceId: vpn-0b9245694abbd2b12 │
│ State: available │
│ Association: │
│ TransitGatewayRouteTableId: tgw-rtb-0631c6177f6066925 │
│ State: associated │
│ CreationTime: 2022-08-01T15:05:19.000Z │
│ Tags: [] │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────┘


List Summary:
Provider: aws
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ aws │
├───────────────────────────────┬─────────────────────────────────────────────────────────────┤
│ EC2::TransitGatewayAttachment │ tgw-attach::tgw-09547b88bbdb2ac86::vpn::vpn-0b9245694abbd2… │
└───────────────────────────────┴─────────────────────────────────────────────────────────────┘
1 resource, 1 type, 1 provider
Command "gc l -t EC2::TransitGatewayAttachment" executed in 6s, 116 MB