From 796145d62d2b7db9e84d00d6119488a1d44a27da Mon Sep 17 00:00:00 2001 From: Rasmus Larsen Date: Fri, 26 Jan 2018 15:32:22 +0100 Subject: [PATCH] Make DestinationCidrBlock optional (ipv6). --- moto/ec2/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/ec2/models.py b/moto/ec2/models.py index 74bc9d166..f80861c10 100755 --- a/moto/ec2/models.py +++ b/moto/ec2/models.py @@ -2591,7 +2591,7 @@ class Route(object): ec2_backend = ec2_backends[region_name] route_table = ec2_backend.create_route( route_table_id=route_table_id, - destination_cidr_block=properties['DestinationCidrBlock'], + destination_cidr_block=properties.get('DestinationCidrBlock'), gateway_id=gateway_id, instance_id=instance_id, interface_id=interface_id,