Skip to main content

transit_gateway_peerings

Creates, updates, deletes or gets a transit_gateway_peering resource or lists transit_gateway_peerings in a region

Overview

Nametransit_gateway_peerings
TypeResource
DescriptionAWS::NetworkManager::TransitGatewayPeering Resoruce Type.
Idawscc.networkmanager.transit_gateway_peerings

Fields

NameDatatypeDescription
core_network_idstringThe Id of the core network that you want to peer a transit gateway to.
core_network_arnstringThe ARN (Amazon Resource Name) of the core network that you want to peer a transit gateway to.
transit_gateway_arnstringThe ARN (Amazon Resource Name) of the transit gateway that you will peer to a core network
transit_gateway_peering_attachment_idstringThe ID of the TransitGatewayPeeringAttachment
peering_idstringThe Id of the transit gateway peering
statestringThe state of the transit gateway peering
edge_locationstringThe location of the transit gateway peering
resource_arnstringThe ARN (Amazon Resource Name) of the resource that you will peer to a core network
owner_account_idstringPeering owner account Id
peering_typestringPeering type (TransitGatewayPeering)
created_atstringThe creation time of the transit gateway peering
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcetransit_gateway_peeringsINSERTCoreNetworkId, TransitGatewayArn, region
delete_resourcetransit_gateway_peeringsDELETEIdentifier, region
update_resourcetransit_gateway_peeringsUPDATEIdentifier, PatchDocument, region
list_resourcestransit_gateway_peerings_list_onlySELECTregion
get_resourcetransit_gateway_peeringsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual transit_gateway_peering.

SELECT
region,
core_network_id,
core_network_arn,
transit_gateway_arn,
transit_gateway_peering_attachment_id,
peering_id,
state,
edge_location,
resource_arn,
owner_account_id,
peering_type,
created_at,
tags
FROM awscc.networkmanager.transit_gateway_peerings
WHERE
region = 'us-east-1' AND
Identifier = '{{ peering_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.networkmanager.transit_gateway_peerings (
CoreNetworkId,
TransitGatewayArn,
region
)
SELECT
'{{ core_network_id }}',
'{{ transit_gateway_arn }}',
'{{ region }}';

UPDATE example

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

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

DELETE example

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

Permissions

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

networkmanager:CreateTransitGatewayPeering,
networkmanager:TagResource,
networkmanager:GetTransitGatewayPeering,
iam:CreateServiceLinkedRole,
ec2:CreateTransitGatewayPeeringAttachment,
ec2:AcceptTransitGatewayPeeringAttachment,
ec2:DescribeRegions