CreateVpcPeeringConnection
GET /?Action=CreateVpcPeeringConnection
Description
Requests a VPC peering connection between a VPC you own and a peer VPC that belongs to you or another account.
This action creates a VPC peering connection that remains in the pending-acceptance
state until it is accepted by the owner of the peer VPC. If the owner of the peer VPC does not accept the request within 7 days, the state of the VPC peering connection becomes expired
. For more information, see AcceptVpcPeeringConnection.
Note
|
The two VPCs must not have overlapping CIDR blocks. Otherwise, the VPC peering connection is in the |
Body parameter
Required: false
Name: CreateVpcPeeringConnectionRequest
Name | Description | Required | Schema | Default | Example |
---|---|---|---|---|---|
PeerOwnerId |
The account ID of the owner of the VPC you want to connect with. By default, it is your account ID. |
false |
string |
||
PeerVpcId |
The ID of the VPC you want to connect with. |
true |
string |
||
VpcId |
The ID of the VPC you send the request from. |
true |
string |
Responses
HTTP Code 200
HTTP Code | Description | Schema |
---|---|---|
200 |
CreateVpcPeeringConnectionResult |
Response 200
Name | Description | Required | Schema | Default | Example |
---|---|---|---|---|---|
requestId |
The ID of the request. |
false |
string |
||
vpcPeeringConnection |
Information about the created VPC peering connection. |
false |