lemon-wall-81522
02/26/2019, 9:40 PMig = ec2.InternetGateway(resource_name = 'new-ig', vpc_id = vpc.id)
rt = ec2.RouteTable('new-rt', vpc_id = vpc.id, routes = [ig.id])
and
ig = ec2.InternetGateway(resource_name = 'new-ig', vpc_id = vpc.id)
rt = ec2.RouteTable('new-rt', vpc_id = vpc.id, routes = [ig])
Both returned
aws:ec2:RouteTable (new-rt):
error: aws:ec2/routeTable:RouteTable resource 'new-rt' has a problem: route.0: expected object, got string
incalculable-sundown-82514
02/26/2019, 10:03 PMroutes
has to be a list of dictionaries with a set of keys instead of a string:
https://pulumi.io/reference/pkg/nodejs/@pulumi/aws/ec2/#RouteTableArgs-routeslemon-wall-81522
02/26/2019, 10:19 PMincalculable-sundown-82514
02/26/2019, 10:20 PMRouteTableArgs
type that encodes the things you can pass to itlemon-wall-81522
02/26/2019, 10:21 PMincalculable-sundown-82514
02/26/2019, 11:03 PM