fancy-bird-54024
08/27/2022, 11:05 AMpulumi new
has a --config stringArray
option. But it seems not say what stringArrary
should look like. I try --config aws:region:us-east-1
but it complains a error: (my terminal is PowerShell)
error: could not parse aws:region:us-east-1 as a configuration key (configuration keys should be of the form `<namespace>:<name>`)
so what it should look like? "aws:region:us-east-1"
or aws:region us-east-1
(will complain too much args) seems both not the correct answer. Thanks~brainy-church-78120
08/27/2022, 6:52 PMfancy-bird-54024
08/28/2022, 4:42 AMpulumi new aws-java --name xxx --stack dev --description xxxx --config someconfigurationhere
.
If I omit --config
part, the Pulumi will ask me to input with aws:region: The AWS region to deploy into: (us-east-1)
message. SO I guess maybe I can manual add this required field in advance within the pulumi new
command line. And maybe --config
option, could help me directly to fill this field as --config aws:region:ap-east-1
or whatever format. But when I input pulumi new -h
to search the format, the helper info show -c, --config stringArray Config to save
in the Flags. I try "aws:region:ap-east-1"
and aws:region ap-east-1
but it seems not correct format, SO I wonder how it stringArray
should look like in PowerShell , and whether I could use this option to skip that interactive input procedure.(I am not a native English speaker, sorry for my Grammar. Hope I can express my thoughts 😂)brainy-church-78120
08/28/2022, 4:33 PMbillowy-army-68599
pulumi new typescript --config="foo=bar"
i end up with
cat Pulumi.dev.yaml
config:
project:foo: bar
If I do:
pulumi new aws-typescript --config="aws:region=us-west-2"
i end up with
config:
aws:region: us-west-2
pulumi new aws-typescript --config="aws:region=us-west-2" --config="foo=bar"
cat Pulumi.dev.yaml
config:
aws:region: us-west-2
project:foo: bar
brainy-church-78120
08/28/2022, 5:59 PMfancy-bird-54024
08/29/2022, 1:14 AM