AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::VPCPeeringConnection

EC2 VPCPeeringConnection

Resource Type definition for AWS::EC2::VPCPeeringConnection

Properties

7 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
PeerVpcId
string
RequiredCreate-only
VpcId
string
RequiredCreate-only
AssumeRoleRegion
string
Create-onlyWrite-only
PeerOwnerId
string
Create-only
PeerRegion
string
Create-only
PeerRoleArn
string
Create-onlyWrite-only
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
Idstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::VPCPeeringConnection

Resources:
  MyResource:
    Type: AWS::EC2::VPCPeeringConnection
    Properties:
      VpcId: "my-vpcid"
      PeerVpcId: "my-peervpcid"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

read

ec2:DescribeVpcPeeringConnections

create

ec2:CreateVpcPeeringConnectionec2:DescribeVpcPeeringConnectionsec2:AcceptVpcPeeringConnectionec2:CreateTagssts:AssumeRole

update

ec2:CreateTagsec2:DeleteTagsec2:DescribeVpcPeeringConnections

list

ec2:DescribeVpcPeeringConnections

delete

ec2:DeleteVpcPeeringConnectionec2:DescribeVpcPeeringConnections

Get the EC2 Cheat Sheet

Everything you need to know about EC2 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceEC2
Properties8
Required2
TaggingSupported
Primary IDId

Supported Operations

ReadCreateUpdateListDelete

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

PeerRegionPeerOwnerIdPeerVpcIdPeerRoleArnAssumeRoleRegionVpcId

External Links