CmdID

CmdID / aws / aws ec2

aws ec2 describe-transit-gateway-vpc-attachments

Describes one or more VPC attachments. AWS CLI reference

1 example 5 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To describe your transit gateway VPC attachments

The following describe-transit-gateway-vpc-attachments example displays details for your transit gateway VPC attachments.

aws ec2 describe-transit-gateway-vpc-attachmentsIdentify
Its output
{
    "TransitGatewayVpcAttachments": [
        {
            "TransitGatewayAttachmentId": "tgw-attach-0a08e88308EXAMPLE",
            "TransitGatewayId": "tgw-0043d72bb4EXAMPLE",
            "VpcId": "vpc-0f501f7ee8EXAMPLE",
            "VpcOwnerId": "123456789012",
            "State": "available",
            "SubnetIds": [
                "subnet-045d586432EXAMPLE",
                "subnet-0a0ad478a6EXAMPLE"
            ],
            "CreationTime": "2019-02-13T11:04:02.000Z",
            "Options": {
                "DnsSupport": "enable",
                "Ipv6Support": "disable"
            },
            "Tags": [
                {
                    "Key": "Name",
                    "Value": "attachment name"
                }
            ]
        }
    ]
}

For more information, see View your VPC attachments in the Transit Gateways Guide.

Options

5 in the AWS CLI reference
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.
--filtersOne or more filters.
--max-resultsThe maximum number of results to return with a single call.
--next-tokenThe token for the next page of results.
--transit-gateway-attachment-idsThe IDs of the attachments.