How do i pass [ ]internal.Output to pulumi.All() i...
# general
How do i pass []internal.Output to pulumi.All() in go
cannot use nodesOutput (variable of type []"<|>".Output) as []interface{} value in argument to pulumi.AllcompilerIncompatibleAssign
var nodesOutput []internal.Output
when doing this
pulumi.All(nodesOutput...).ApplyT(func(args []interface{}) error {
for _, a := range args {
return nil
It works when im passing manually pulumi.All(nodesOutput[0],nodesOutput[1])
Is there an equivalent to the Typescript
operator? A spread operator?
Looks like you have to turn the array into slices (whatever they are) then use the
Also fyi, you might get more expert advice at #golang