I’m writing a Pulumi Component Resource Provider i...
# general
b
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
can you show me your
schema
?
it does support this i believe
b
We’ve already refactored to an array of key/value pairs as a typed object…. but I still wanna know, one sec