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-05-07 09:38:04 -05:00
2017-05-10 21:58:42 -04:00
2018-06-01 08:38:35 +10:00
2017-02-23 21:41:05 -05:00
2018-03-21 09:05:57 -07:00
2017-09-26 20:43:58 +01:00
2017-03-11 23:41:12 -05:00
2017-12-23 05:45:05 +02:00
2017-03-12 19:58:40 -04:00
2018-08-29 08:44:03 -04:00
2017-02-23 21:41:05 -05:00