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.
Idawscc.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.

For more information, see AWS::NetworkManager::ConnectPeer.

Methods

NameResourceAccessible byRequired Params
create_resourceconnect_peersINSERTConnectAttachmentId, PeerAddress, region
delete_resourceconnect_peersDELETEIdentifier, region
update_resourceconnect_peersUPDATEIdentifier, PatchDocument, region
list_resourcesconnect_peers_list_onlySELECTregion
get_resourceconnect_peersSELECTIdentifier, region

SELECT examples

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 awscc.networkmanager.connect_peers
WHERE
region = 'us-east-1' AND
Identifier = '{{ connect_peer_id }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.networkmanager.connect_peers
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ connect_peer_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.networkmanager.connect_peers
WHERE
Identifier = '{{ connect_peer_id }}' AND
region = 'us-east-1';

Permissions

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

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