CmdID

CmdID / aws / aws ec2

aws ec2 create-transit-gateway-connect-peer

Creates a Connect peer for a specified transit gateway Connect attachment between a transit gateway and an appliance. AWS CLI reference

1 example 7 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 create a Transit Gateway Connect peer

The following create-transit-gateway-connect-peer example creates a Connect peer.

aws ec2 create-transit-gateway-connect-peer --transit-gateway-attachment-id tgw-attach-0f0927767cEXAMPLE --peer-address 172.31.1.11 --inside-cidr-blocks 169.254.6.0/29Identify
--transit-gateway-attachment-idThe ID of the Connect attachment.
--peer-addressThe peer IP address (GRE outer IP address) on the appliance side of the Connect peer.
--inside-cidr-blocksThe range of inside IP addresses that are used for BGP peering.
Its output, shortened
{
    "TransitGatewayConnectPeer": {
        "TransitGatewayAttachmentId": "tgw-attach-0f0927767cEXAMPLE",
        "TransitGatewayConnectPeerId": "tgw-connect-peer-0666adbac4EXAMPLE",
        "State": "pending",
        "CreationTime": "2021-10-13T03:35:17.000Z",
        "ConnectPeerConfiguration": {
            "TransitGatewayAddress": "10.0.0.234",
            "PeerAddress": "172.31.1.11",
            "InsideCidrBlocks": [
                "169.254.6.0/29"
            ],
            "Protocol": "gre",
            "BgpConfigurations": [
                {
                    "TransitGatewayAsn": 64512,
                    "PeerAsn": 64512,
                    "TransitGatewayAddress": "169.254.6.2",
                    "PeerAddress": "169.254.6.1",
                    "BgpStatus": "down"
                },
                {
                    "TransitGatewayAsn": 64512,
                    "PeerAsn": 64512,
                    "TransitGatewayAddress": "169.254.6.3",
                    "PeerAddress": "169.254.6.1",
                    "BgpStatus": "down"
                }
            ]
        }
… 2 more lines

For more information, see Transit gateway Connect attachments and Transit Gateway Connect peers in the Transit Gateways Guide.

Options

7 in the AWS CLI reference
--bgp-optionsThe BGP options for the Connect peer.
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.
--inside-cidr-blocksThe range of inside IP addresses that are used for BGP peering.
--peer-addressThe peer IP address (GRE outer IP address) on the appliance side of the Connect peer.
--tag-specificationsThe tags to apply to the Connect peer.
--transit-gateway-addressThe peer IP address (GRE outer IP address) on the transit gateway side of the Connect peer, which must be specified from a transit gateway CIDR block.
--transit-gateway-attachment-idThe ID of the Connect attachment.