This message was deleted.
s
This message was deleted.
l
You need to transform the array of arrays (which is what you get from JSON/YAML parsing) into the map you want. I have some code that transforms something like that into a
Map<string, string>
.. let me find it...
Copy code
const resourceTagsObj = config.requireObject<any>("resourceTags");
const resourceTags = Object.keys(resourceTagsObj).reduce((map, key) => map.set(key, resourceTagsObj[key]), new Map());
That'll need some tweaking since you want an
InputMap<string>
...
t
Converting the config to
Copy code
PulumiPort:resourceTags:
    BU1: lkasdlk
    CC: e123
made my code work.
l
Nice.
Is that because you used
InputMap
? I don't know that class, if it makes life simpler, I should switch...
t
AccountArgs.Tags
is of type
InputMap<string>
. The
Dictionary
automatically converts to
InputMap
113 Views