ALIYUN::VPC::VpcPeerConnection is used to create a virtual private cloud (VPC) peering connection.
Syntax
{
"Type": "ALIYUN::VPC::VpcPeerConnection",
"Properties": {
"Description": String,
"DeletionForce": Boolean,
"AcceptingVpcId": String,
"VpcId": String,
"AcceptingRegionId": String,
"AcceptingAliUid": Integer,
"Name": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
Description | String | No | Yes | The description of the VPC peering connection. | The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https:// . |
DeletionForce | Boolean | No | Yes | Specifies whether to forcefully delete the VPC peering connection. | Valid values:
|
AcceptingVpcId | String | Yes | No | The ID of the acceptor VPC. | The ID of the acceptor VPC must be different from the ID of the requester VPC. |
VpcId | String | Yes | No | The ID of the requester VPC. | None. |
AcceptingRegionId | String | No | No | The region ID of the acceptor VPC. | Valid values:
|
AcceptingAliUid | Integer | No | No | The ID of the Alibaba Cloud account to which the acceptor VPC belongs. | Valid values:
Note If the acceptor VPC belongs to a RAM user, specify the Alibaba Cloud account to which the RAM user belongs. |
Name | String | No | Yes | The name of the VPC peering connection. | The name must be 2 to 128 characters in length, and can contain digits, underscores (_), and hyphens (-). The name must start with a letter. |
Return values
Fn::GetAtt
InstanceId: the ID of the VPC.
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "AcceptingVpcId": { "Type": "String", "Description": "The ID of the acceptor VPC." }, "VpcId": { "Type": "String", "Description": "The ID of the requester VPC." } }, "Resources": { "VpcPeerConnection": { "Type": "ALIYUN::VPC::VpcPeerConnection", "Properties": { "AcceptingVpcId": { "Ref": "AcceptingVpcId" }, "VpcId": { "Ref": "VpcId" } } } }, "Outputs": { "InstanceId": { "Description": "The ID of the VPC peering connection.", "Value": { "Fn::GetAtt": [ "VpcPeerConnection", "InstanceId" ] } } } }