https://pulumi.com logo
#golang
Title
# golang
b

brash-painting-89833

10/19/2023, 5:35 PM
Anyone has an idea on how to fix this error?
Copy code
pulumi:pulumi:Stack (....):
    error: an unhandled error occurred: program failed:
    waiting for RPCs: marshaling properties: awaiting input property "routeTableId": expected a ec2.Vpc, got a resource of type ec2.Vpc
I am basically creating a vpc using awsx and try to add a new route using regular aws ec2, but it seems they can't be converted? Any idea on how to do this?
Copy code
_, err = awsec2.NewRoute(ctx, "peer-route-us-ap", &awsec2.RouteArgs{
		 	RouteTableId:           vpcCreateddawsx.Vpc.MainRouteTableId(),
		 	DestinationCidrBlock:   pulumi.String(vpcNodeApSoutheast1NetworkCidr),
		 	VpcPeeringConnectionId: vpcPeerUsAp.PeerVpcId,
		// })
2 Views