https://pulumi.com logo
#getting-started
Title
# getting-started
d

damp-accountant-65956

10/04/2021, 10:51 PM
need a little help with how to "return" outputs from a component resource and use them in the main package as i'm still getting the error
error: program failed: waiting for RPCs: rpc error: code = Unknown desc = marshaling properties: awaiting input property vpc: cannot marshal an input of type pulumi.StringOutput with element type string as a value of type pulumi.StringOutput
... if I flatten the struct and just return
StringOutput
types, i can make it work but if i try and nest a struct, i'm missing something...the
standardEnvironment.go
file is in my component resource and
main.go
is from the main package where I'm running the CLI Any help / guidance here is appreciated!!
b

billowy-army-68599

10/05/2021, 12:25 AM
would you mind putting these in a gist? gist.github.com
b

billowy-army-68599

10/05/2021, 1:54 AM
ahhh now I'm following, thank you. I'm checking this, I believe it should work
@damp-accountant-65956 this is how one of our examples is constructed, it absolutely should work: https://github.com/pulumi/pulumi-component-provider-go-boilerplate/blob/main/provider/pkg/provider/staticPage.go#L32 https://github.com/pulumi/pulumi-component-provider-go-boilerplate/blob/main/provider/pkg/provider/staticPage.go#L95 if it's not working, it's possibly a bug, can you open an issue?
d

damp-accountant-65956

10/05/2021, 2:04 AM
is there any way to bump the verbosity up in a component resource when it's executing so I can get more detail about where it's failing? because I basically do that with ec2.Vpc instead of s3.Bucket and i get that error ... and i've tried many other ways... if i could get more info out of the RPC call to the provider, that'd possibly point me in the right direction of what's going on
b

billowy-army-68599

10/05/2021, 2:05 AM
Copy code
pulumi up --logtostderr -v=9
7 Views