How to set a secret that starts with -
using pulumi config set --secret
?
#12458
Labels
needs-triage
Needs attention from the triage team
File: content/docs/cli/commands/pulumi_config_set.md
I need to set a secret generated by Azure, and it happened to start with a dash
-,
for example:-FM8QW.Jkf6qUvIkpQFFnio74nhxo
(This is an example value; I don't use it in the real scenario now).But the
pulumi config set—-secret
with that secret value always fails, no matter how I try to wrap it with double or single quotes. I can't find any helpful messages in the documentation.I tried the following commands, but all of them failed:
The error message indicates that the pulumi config set command is misinterpreting the secret value as a flag due to the leading hyphen (-). The error messages were like the following:
The text was updated successfully, but these errors were encountered: