Hello, anyone can help me please, I am trying to s...
# getting-started
h
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
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
The scope is create according the config in different zones some instances