Commit 1f813ba1 by James Cammarata

Merge pull request #8022 from psa/vpc-gateway-peering

Fix for #7368 breaks peering connections. Unreak them.
parents 7f8de3a2 97b3e8c6
...@@ -427,8 +427,10 @@ def create_vpc(module, vpc_conn): ...@@ -427,8 +427,10 @@ def create_vpc(module, vpc_conn):
'(igw) route, but you have no Internet Gateway' '(igw) route, but you have no Internet Gateway'
) )
route_kwargs['gateway_id'] = igw.id route_kwargs['gateway_id'] = igw.id
else: elif route['gw'].startswith('i-'):
route_kwargs['instance_id'] = route['gw'] route_kwargs['instance_id'] = route['gw']
else:
route_kwargs['gateway_id'] = route['gw']
vpc_conn.create_route(new_rt.id, route['dest'], **route_kwargs) vpc_conn.create_route(new_rt.id, route['dest'], **route_kwargs)
# Associate with subnets # Associate with subnets
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment