Not really sure how to debug this error I'm gettin...
# general
b
Not really sure how to debug this error I'm getting in pulumi with go?
waiting for RPCs: rpc error: code = Unknown desc = marshaling properties: awaiting input property "role": cannot marshal an input of type pulumi.StringOutput with element type string as a value of type pulumi.StringOutput
. There's no stack trace or anything to find out where it's failing or which value it's failing on. I'm also not really sure why a
StringOutput
wouldn't be compatible with a
StringOutput
m
b
Seems to be related to
aws-iam.NewRoleForServiceAccountsEks
, commenting out that entire function call seems to prevent the failure
I'm not sure if it's one of the structs I'm building in its args or the function itself that's broken
m
This seems to be a general problem with dynamic output types in Go, I don't think this is specific to the package you're working with. (However, note that it says "Please do not use this in a production environment!" in the README.)
b
Oh, totally missed that
Guess I should figure out another way to do this, then
m
Shameless self-plug, here's the pattern I use to do this in Python, maybe this translates to Go and your use case
b
That looks promising, thanks for sharing