brash-painting-89833
10/19/2023, 5:35 PMpulumi: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?
_, err = awsec2.NewRoute(ctx, "peer-route-us-ap", &awsec2.RouteArgs{
RouteTableId: vpcCreateddawsx.Vpc.MainRouteTableId(),
DestinationCidrBlock: pulumi.String(vpcNodeApSoutheast1NetworkCidr),
VpcPeeringConnectionId: vpcPeerUsAp.PeerVpcId,
// })