moto/moto/ec2
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
..
resources Fix prebuilt images usability. (#1375) 2017-12-05 09:22:13 +00:00
responses Fix #1830 Add support for cross-region VPC peering 2018-09-21 23:29:04 +08:00
__init__.py Lints. 2017-02-23 21:37:43 -05:00
exceptions.py Enable Extended CIDR Associations on VPC (#1511) 2018-03-21 09:10:38 -07:00
models.py Fix #1830 Add support for cross-region VPC peering 2018-09-21 23:29:04 +08:00
urls.py Add more availability regions and implement default VPC (#773) 2017-01-11 20:37:57 -05:00
utils.py Enable Extended CIDR Associations on VPC (#1511) 2018-03-21 09:10:38 -07:00