HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/lib/python3/dist-packages/awscli/examples/ec2/describe-transit-gateway-attachments.rst
**To view your transit gateway attachments**

 The following ``describe-transit-gateway-attachments`` example displays details for your transit gateway attachments. ::

    aws ec2 describe-transit-gateway-attachments

Output::

    {
        "TransitGatewayAttachments": [
            {
                "TransitGatewayAttachmentId": "tgw-attach-01f8100bc7EXAMPLE",
                "TransitGatewayId": "tgw-02f776b1a7EXAMPLE",
                "TransitGatewayOwnerId": "123456789012",
                "ResourceOwnerId": "123456789012",
                "ResourceType": "vpc",
                "ResourceId": "vpc-3EXAMPLE",
                "State": "available",
                "Association": {
                    "TransitGatewayRouteTableId": "tgw-rtb-002573ed1eEXAMPLE",
                    "State": "associated"
                },
                "CreationTime": "2019-08-26T14:59:25.000Z",
                "Tags": [
                    {
                        "Key": "Name",
                        "Value": "Example"
                    }
                ]
            },
            {
                "TransitGatewayAttachmentId": "tgw-attach-0b5968d3b6EXAMPLE",
                "TransitGatewayId": "tgw-02f776b1a7EXAMPLE",
                "TransitGatewayOwnerId": "123456789012",
                "ResourceOwnerId": "123456789012",
                "ResourceType": "vpc",
                "ResourceId": "vpc-0065acced4EXAMPLE",
                "State": "available",
                "Association": {
                    "TransitGatewayRouteTableId": "tgw-rtb-002573ed1eEXAMPLE",
                    "State": "associated"
                },
                "CreationTime": "2019-08-07T17:03:07.000Z",
                "Tags": []
            },
            {
                "TransitGatewayAttachmentId": "tgw-attach-08e0bc912cEXAMPLE",
                "TransitGatewayId": "tgw-02f776b1a7EXAMPLE",
                "TransitGatewayOwnerId": "123456789012",
                "ResourceOwnerId": "123456789012",
                "ResourceType": "direct-connect-gateway",
                "ResourceId": "11460968-4ac1-4fd3-bdb2-00599EXAMPLE",
                "State": "available",
                "Association": {
                    "TransitGatewayRouteTableId": "tgw-rtb-002573ed1eEXAMPLE",
                    "State": "associated"
                },
                "CreationTime": "2019-08-14T20:27:44.000Z",
                "Tags": []
            },
            {
                "TransitGatewayAttachmentId": "tgw-attach-0a89069f57EXAMPLE",
                "TransitGatewayId": "tgw-02f776b1a7EXAMPLE",
                "TransitGatewayOwnerId": "123456789012",
                "ResourceOwnerId": "123456789012",
                "ResourceType": "direct-connect-gateway",
                "ResourceId": "8384da05-13ce-4a91-aada-5a1baEXAMPLE",
                "State": "available",
                "Association": {
                    "TransitGatewayRouteTableId": "tgw-rtb-002573ed1eEXAMPLE",
                    "State": "associated"
                },
                "CreationTime": "2019-08-14T20:33:02.000Z",
                "Tags": []
            }
        ]
    }

For more information, see `Work with transit gateways <https://docs.aws.amazon.com/vpc/latest/tgw/working-with-transit-gateways.html>`__ in the *Transit Gateways Guide*.