Skip to main content

transit_gateway_connect_peers

Creates, updates, deletes, gets or lists a transit_gateway_connect_peers resource.

Overview

Nametransit_gateway_connect_peers
TypeResource
Idaws.ec2.transit_gateway_connect_peers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
connect_peer_configurationstringThe Connect peer details.
creation_timestringThe creation time.
statestringThe state of the Connect peer.
tagsstringThe tags for the Connect peer.
transit_gateway_attachment_idstringThe ID of the Connect attachment.
transit_gateway_connect_peer_idstringThe ID of the Connect peer.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_transit_gateway_connect_peersselectregionTransitGatewayConnectPeerIds, Filter, MaxResults, NextToken, DryRunDescribes one or more Connect peers.
create_transit_gateway_connect_peerinsertTransitGatewayAttachmentId, PeerAddress, InsideCidrBlocks, regionTransitGatewayAddress, BgpOptions, TagSpecification, DryRunCreates a Connect peer for a specified transit gateway Connect attachment between a transit gateway and an appliance. The peer address and transit gateway address must be the same IP address family (IPv4 or IPv6). For more information, see Connect peers in the Amazon Web Services Transit Gateways Guide.
delete_transit_gateway_connect_peerdeleteTransitGatewayConnectPeerId, regionDryRunDeletes the specified Connect peer.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
InsideCidrBlocksarrayThe range of inside IP addresses that are used for BGP peering. You must specify a size /29 IPv4 CIDR block from the 169.254.0.0/16 range. The first address from the range must be configured on the appliance as the BGP IP address. You can also optionally specify a size /125 IPv6 CIDR block from the fd00::/8 range.
PeerAddressstringThe peer IP address (GRE outer IP address) on the appliance side of the Connect peer.
TransitGatewayAttachmentIdstringThe ID of the Connect attachment.
TransitGatewayConnectPeerIdstringThe ID of the Connect peer.
regionstringAWS region (default: us-east-1)
BgpOptionsobjectThe BGP options for the Connect peer.
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayOne or more filters. The possible values are: state - The state of the Connect peer (pending | available | deleting | deleted). transit-gateway-attachment-id - The ID of the attachment. transit-gateway-connect-peer-id - The ID of the Connect peer.
MaxResultsintegerThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
NextTokenstringThe token for the next page of results.
TagSpecificationarrayThe tags to apply to the Connect peer.
TransitGatewayAddressstringThe 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. If not specified, Amazon automatically assigns the first available IP address from the transit gateway CIDR block.
TransitGatewayConnectPeerIdsarrayThe IDs of the Connect peers.

SELECT examples

Describes one or more Connect peers.

SELECT
connect_peer_configuration,
creation_time,
state,
tags,
transit_gateway_attachment_id,
transit_gateway_connect_peer_id
FROM aws.ec2.transit_gateway_connect_peers
WHERE region = '{{ region }}' -- required
AND TransitGatewayConnectPeerIds = '{{ TransitGatewayConnectPeerIds }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND DryRun = '{{ DryRun }}'
;

INSERT examples

Creates a Connect peer for a specified transit gateway Connect attachment between a transit gateway and an appliance. The peer address and transit gateway address must be the same IP address family (IPv4 or IPv6). For more information, see Connect peers in the Amazon Web Services Transit Gateways Guide.

INSERT INTO aws.ec2.transit_gateway_connect_peers (
TransitGatewayAttachmentId,
PeerAddress,
InsideCidrBlocks,
region,
TransitGatewayAddress,
BgpOptions,
TagSpecification,
DryRun
)
SELECT
'{{ TransitGatewayAttachmentId }}',
'{{ PeerAddress }}',
'{{ InsideCidrBlocks }}',
'{{ region }}',
'{{ TransitGatewayAddress }}',
'{{ BgpOptions }}',
'{{ TagSpecification }}',
'{{ DryRun }}'
RETURNING
connect_peer_configuration,
creation_time,
state,
tags,
transit_gateway_attachment_id,
transit_gateway_connect_peer_id
;

DELETE examples

Deletes the specified Connect peer.

DELETE FROM aws.ec2.transit_gateway_connect_peers
WHERE TransitGatewayConnectPeerId = '{{ TransitGatewayConnectPeerId }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
;