hans cedb89dc3b Fix #1830 Add support for cross-region VPC peering
Add a class level store in models/VPCBackend of ec2
for saving vpcs of all regions info. Any instance can correctly find vpc in another region
when connecting vpc of cross-region or vpc of same region.

Modify vpc_peering_connections in ec2/responses to handle
vpc peering of same region or cross region.

Update vpc_peering_connections response
template content to latest (2016-11-15) .

Add vpc cross region peering successful test case.
Add vpc cross region peering fail test case.

Related: https://github.com/spulec/moto/issues/1830

Reference
CreateVpcPeeringConnection Sample Response
https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVpcPeeringConnection.html
2018-09-21 23:29:04 +08:00
..
2017-02-23 21:37:43 -05:00
2017-02-23 21:37:43 -05:00
2017-09-14 14:59:13 +05:30
2017-02-23 21:37:43 -05:00
2017-05-26 12:47:28 -07:00
2017-10-25 19:29:56 +01:00
2017-02-23 21:37:43 -05:00
2017-02-23 22:28:09 -05:00
2017-02-23 21:37:43 -05:00
2017-02-23 21:37:43 -05:00