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
..
2018-04-13 10:37:06 -04:00
2017-10-22 21:36:39 +01:00
2018-04-04 00:28:39 -07:00
2017-05-10 21:58:42 -04:00
2017-02-23 21:37:43 -05:00
2017-09-27 09:54:46 +01:00
2017-06-20 11:58:18 -07:00
2018-08-05 19:18:11 -04:00
2017-02-23 21:37:43 -05:00
2017-10-16 17:06:22 -07:00
2017-02-15 22:35:45 -05:00
2017-02-23 21:37:43 -05:00
2017-02-23 21:37:43 -05:00