https://pulumi.com logo
i

icy-engineer-10830

09/06/2019, 2:04 PM
Is it possible to set Pulumi config variables via the command line tool? sort of like how the -var option is used in terraform
t

tall-librarian-49374

09/06/2019, 2:05 PM
pulumi config set name value
i

icy-engineer-10830

09/06/2019, 2:15 PM
thanks, was hoping there was a way to do it with say the pulumi up command but doesn’t seem like it
w

white-balloon-205

09/06/2019, 2:52 PM
Curious - what is the reason you are wanting to set config with Pulumi up but not another command?
i

icy-engineer-10830

09/06/2019, 3:16 PM
mainly around automation and doing it within a single command
w

white-balloon-205

09/06/2019, 4:17 PM
Note that there is are
--config
and
--config-file
flags to
pulumi up
. They have the same affect as running
pulumi config
and then
pulumi up
.
i

icy-engineer-10830

09/06/2019, 4:37 PM
nice, that's exactly what I was looking for