https://pulumi.com logo
#getting-started
Title
# getting-started
h

hallowed-printer-89159

11/21/2022, 4:30 PM
Hello, anyone can help me please, I am trying to set pulumi config with following command
Copy code
pulumi config set-all --plaintext instancesConfig=[{zone: us-central1-a, quantity: 3}, {zone: us-central1-b, quantity: 1}]
and I got an error Each key-value pair must be preceded by either the
--secret
or the
--plaintext
flag to denote whether it should be encrypted:
r

red-match-15116

11/21/2022, 5:09 PM
It would be
pulumi config set-all --plaintext instancesConfig [{zone: us-central1-a, quantity: 3}, {zone: us-central1-b, quantity: 1}]
(it's a space instead of
=
)
You're also only setting 1 config value so you could use
pulumi config set
instead of
set-all
It also looks like you might need some quote marks around those strings in the config value? I'm not as sure about that. Like
[{"zone": "us-central1-a", "quantity": 3}, {"zone": "us-central1-b", "quantity": 1}]
h

hallowed-printer-89159

11/21/2022, 5:33 PM
The scope is create according the config in different zones some instances
3 Views