icy-controller-6092
01/16/2024, 12:40 AMpulumi config set
? I got the command to work but running the program failed:
> pulumi config set --path 'aws:defaultTags.tags' '{"user:Project": "my_project"}'
error: pulumi:providers:aws resource 'default_6_9_0' has a problem: could not validate provider configuration: Attribute must be a map. Check `pulumi config get --path aws:defaultTags.tags`
icy-controller-6092
01/16/2024, 12:41 AM> pulumi config set --path 'aws:defaultTags.tags.["user:Project"]' my_project
error: invalid configuration key: could not parse aws:defaultTags.tags.["user:Project"] as a configuration key (configuration keys should be of the form `<namespace>:<name>`)
--
> pulumi config set --path 'aws:defaultTags.tags.user:Project' my_project
# same error as above
--
> pulumi config set --path 'aws:defaultTags.tags.test' true
error: defaultTags.tags: expected a map
limited-rainbow-51650
01/16/2024, 7:46 AM$ pulumi config set --path 'aws:defaultTags.tags.key' value
$ pulumi config set --path 'aws:defaultTags.tags.otherkey' othervalue
give me the following stack config:
config:
aws:defaultTags:
tags:
key: value
otherkey: othervalue
The problem for you is that your key
contains a colon (user:Project
). This seems to confuse our argument parsing. Can you file an issue for this?
https://github.com/pulumi/pulumi/issuesicy-controller-6092
01/16/2024, 8:09 AM