https://pulumi.com logo
Title
b

billowy-ocean-41790

03/17/2021, 8:36 PM
Can someone describe what the
stringArray
format for cli options such as
--config
? We’re trying to wrap up some common things we do in scripts, and one thing that we are having trouble with is passing
gcp.project
to
pulumi new gcp-typscript
.
I’ve looked for
stringArray
in the docs, and cannot find a definition anywhere.
l

little-cartoon-10569

03/17/2021, 8:37 PM
Where are you seeing this?
pulumi config set-all
?
b

billowy-ocean-41790

03/17/2021, 8:38 PM
pulumi new --config
.
maybe this is the wrong place to do this. but no matter what we have tried to pass to pulumi new, it always asks for user input to set
gcp:project
.
l

little-cartoon-10569

03/17/2021, 8:40 PM
Have a look at the docs for
set-all
, it has better examples for config. It should work the same. https://www.pulumi.com/docs/reference/cli/pulumi_config_set-all/
b

billowy-ocean-41790

03/17/2021, 8:45 PM
hrm. that looks to me like what we’re doing. Right now we are running
pulumi new gcp-typescript --config "gcp:project=$project_name"
But it then asks for user input to specifiy
gcp:project
.
l

little-cartoon-10569

03/17/2021, 8:47 PM
Hmm. Not sure. I'd double-check that _$project___name_ is being resolved correctly. And if it is, I'd resort to opening up the source code and see what it's doing under the hood 😞
b

billowy-ocean-41790

03/17/2021, 8:49 PM
Ok, I just found this. Maybe we can run
gcloud config set project …
before running
pulumi new
, or set the
$GOOGLE_PROJECT
.
In any case, thanks for the help!