Skip to main content

connect_peers

Creates, updates, deletes or gets a connect_peer resource or lists connect_peers in a region

Overview

Nameconnect_peers
TypeResource
DescriptionAWS::NetworkManager::ConnectPeer Resource Type Definition.
Idaws.networkmanager.connect_peers

Fields

NameDatatypeDescription
peer_addressstringThe IP address of the Connect peer.
core_network_addressstringThe IP address of a core network.
bgp_optionsobjectBgp options for connect peer.
inside_cidr_blocksarrayThe inside IP addresses used for a Connect peer configuration.
core_network_idstringThe ID of the core network.
connect_attachment_idstringThe ID of the attachment to connect.
connect_peer_idstringThe ID of the Connect peer.
edge_locationstringThe Connect peer Regions where edges are located.
statestringState of the connect peer.
created_atstringConnect peer creation time.
configurationobjectConfiguration of the connect peer.
subnet_arnstringThe subnet ARN for the connect peer.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTConnectAttachmentId, PeerAddress, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all connect_peers in a region.

SELECT
region,
peer_address,
core_network_address,
bgp_options,
inside_cidr_blocks,
core_network_id,
connect_attachment_id,
connect_peer_id,
edge_location,
state,
created_at,
configuration,
subnet_arn,
tags
FROM aws.networkmanager.connect_peers
WHERE region = 'us-east-1';

Gets all properties from an individual connect_peer.

SELECT
region,
peer_address,
core_network_address,
bgp_options,
inside_cidr_blocks,
core_network_id,
connect_attachment_id,
connect_peer_id,
edge_location,
state,
created_at,
configuration,
subnet_arn,
tags
FROM aws.networkmanager.connect_peers
WHERE region = 'us-east-1' AND data__Identifier = '<ConnectPeerId>';

INSERT example

Use the following StackQL query and manifest file to create a new connect_peer resource, using stack-deploy.

/*+ create */
INSERT INTO aws.networkmanager.connect_peers (
PeerAddress,
ConnectAttachmentId,
region
)
SELECT
'{{ PeerAddress }}',
'{{ ConnectAttachmentId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.networkmanager.connect_peers
WHERE data__Identifier = '<ConnectPeerId>'
AND region = 'us-east-1';

Permissions

To operate on the connect_peers resource, the following permissions are required:

Create

networkmanager:GetConnectPeer,
networkmanager:CreateConnectPeer,
networkmanager:TagResource,
ec2:DescribeRegions

Read

networkmanager:GetConnectPeer

Update

networkmanager:GetConnectPeer,
networkmanager:ListTagsForResource,
networkmanager:TagResource,
networkmanager:UntagResource,
ec2:DescribeRegions

Delete

networkmanager:GetConnectPeer,
networkmanager:DeleteConnectPeer,
ec2:DescribeRegions

List

networkmanager:ListConnectPeers