brave-photographer-72352
04/07/2021, 8:06 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 AM