vpc_peering_connection
Gets or updates an individual vpc_peering_connection
resource, use vpc_peering_connections
to retrieve a list of resources or to create or delete a resource.
Overview
Name | vpc_peering_connection |
Type | Resource |
Description | Resource Type definition for AWS::EC2::VPCPeeringConnection |
Id | aws.ec2.vpc_peering_connection |
Fields
Name | Datatype | Description |
---|---|---|
id | string | |
peer_owner_id | string | The AWS account ID of the owner of the accepter VPC. |
peer_region | string | The 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_arn | string | The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account. |
peer_vpc_id | string | The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request. |
vpc_id | string | The ID of the VPC. |
tags | array | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
get_resource | SELECT | data__Identifier, region |
SELECT
Example
SELECT
region,
id,
peer_owner_id,
peer_region,
peer_role_arn,
peer_vpc_id,
vpc_id,
tags
FROM aws.ec2.vpc_peering_connection
WHERE region = 'us-east-1' AND 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