AWS::EC2::VPCPeeringConnectionResource Type definition for AWS::EC2::VPCPeeringConnection
7 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
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> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Id | string | - |
A minimal template with required properties and common optional ones.
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: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
ec2:DescribeVpcPeeringConnectionsec2:CreateVpcPeeringConnectionec2:DescribeVpcPeeringConnectionsec2:AcceptVpcPeeringConnectionec2:CreateTagssts:AssumeRoleec2:CreateTagsec2:DeleteTagsec2:DescribeVpcPeeringConnectionsec2:DescribeVpcPeeringConnectionsec2:DeleteVpcPeeringConnectionec2:DescribeVpcPeeringConnectionsEverything you need to know about EC2 on one page. HD quality, print-friendly.
Download Free InfographicIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
PeerRegionPeerOwnerIdPeerVpcIdPeerRoleArnAssumeRoleRegionVpcId