Skip to main content

vpc_peering_connection

Gets an individual vpc_peering_connection resource

Overview

Namevpc_peering_connection
TypeResource
Descriptionvpc_peering_connection
Idawscc.ec2.vpc_peering_connection

Fields

NameDatatypeDescription
idstring
peer_owner_idstringThe AWS account ID of the owner of the accepter VPC.
peer_regionstringThe Region code for the accepter VPC, if the accepter VPC is located in a Region other than the Region in which you make the request.
peer_role_arnstringThe Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.
peer_vpc_idstringThe ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request.
vpc_idstringThe ID of the VPC.
tagsarray
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
id,
peer_owner_id,
peer_region,
peer_role_arn,
peer_vpc_id,
vpc_id,
tags
FROM awscc.ec2.vpc_peering_connection
WHERE data__Identifier = '<Id>';

Permissions

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

Read

ec2:DescribeVpcPeeringConnections

Update

ec2:CreateTags,
ec2:DeleteTags,
ec2:DescribeVpcPeeringConnections

Delete

ec2:DeleteVpcPeeringConnection,
ec2:DescribeVpcPeeringConnections