sparse-intern-71089
04/07/2021, 8:06 AMbrave-photographer-72352
04/07/2021, 8:07 AMbrave-photographer-72352
04/07/2021, 8:08 AMbrave-photographer-72352
04/07/2021, 8:10 AMbrave-photographer-72352
04/07/2021, 8:11 AMprehistoric-coat-10166
04/07/2021, 8:29 AMOutput
and the ec2.LookupRouteTableArgs.RouteTableId
expects a string I think you need to perform the lookup inside the apply, something like:
mainRouteTable, err := vpc.MainRouteTableId.ApplyT(
func (routeTableId string) (*LookupRouteTableResult, error) {
return ec2.LookupRouteTable(ctx, &ec2.LookupRouteTableArgs{
RouteTableId: routeTableId
})
}
)
brave-photographer-72352
04/07/2021, 9:07 AMprehistoric-coat-10166
04/07/2021, 9:22 AM*LookupRouteTableResult
should probably be *ec2.LookupRouteTableResult
, and yeah I think the ApplyT returns a single value, so it should just be mainRouteTable := ...
Unfortunately I'm not that familiar with Gobrave-photographer-72352
04/07/2021, 9:57 AMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by