https://pulumi.com logo
#general
Title
# general
b

brave-afternoon-91593

04/27/2022, 5:27 PM
I’m writing a Pulumi Component Resource Provider in Golang, and would like my component resource to accept a
map[string]string
. I’ve added the inputProperty to my schema as
type: object
with no properties, required, nor default. I’m invoking this via the automation API from another golang CLI, and just getting “error: an unhandled error occurred: go inline source runtime error, an unhandled error occurred: unknown error”. Something tells me the protocol doesn’t support generic maps?
The SDK gets generated to receive a
pulumi.StringMapInput
, so that’s a good sign.
Thus, I’m able to pass it a
pulumi.ToStringMap(map[string]string{})
when using the SDK.
b

billowy-army-68599

04/27/2022, 6:00 PM
can you show me your
schema
?
it does support this i believe
b

brave-afternoon-91593

04/27/2022, 6:01 PM
We’ve already refactored to an array of key/value pairs as a typed object…. but I still wanna know, one sec
6 Views