https://pulumi.com logo
#python
Title
# python
l

lemon-wall-81522

02/26/2019, 11:39 PM
Okay, let’s (change case and) add it:
rt = ec2.RouteTable('new-rt', vpc_id = vpc.id, routes = [{'gateway_id': igw.id}], destination_cidr_block = '0.0.0.0/0')
Now it doesn’t even preview:
Copy code
rt = ec2.RouteTable('new-rt', vpc_id = vpc.id, routes = [{'gateway_id': igw.id}], destination_cidr_block = '0.0.0.0/0')
    TypeError: __init__() got an unexpected keyword argument 'destination_cidr_block'