full-dress-10026
09/27/2018, 11:04 PMupdate
?white-balloon-205
pulumi update —config
to include configuration along with an update. See https://pulumi.io/reference/cli/pulumi_up.html.full-dress-10026
09/28/2018, 1:35 AMwhite-balloon-205
full-dress-10026
09/28/2018, 4:00 AMupdate
is documented as -c, --config stringArray
. What does stringArray
mean when called from the command line?pulumi update --config 'cloud-aws:externalVpcId=asd'
And it actually updated my stack config file to contain cloud-aws:externalVpcId
. I was expecting that it was merge in my CLI config options in memory and not actually update the config file.white-balloon-205
config set
along with update
.
Curious to understand the scenario that motivates you to want to set configuration on the update but not persist it? How will you know what to do for the next update?full-dress-10026
09/28/2018, 4:15 AMcloud-aws.Service
with a VPC created in code and the only way to configure that is via the config file. My plan was to create all my other infrastructure in project1, mark all the required externalVpc
config params as exports, and use them to update
the project, project2, that contains my Service
. Because the resources in project2 depend on project1, project2 cannot and should not be deployed without project1 being deployed.
As a side note: I expected the --config
flag to do the merge in memory rather than mutate the file because if I wanted a file mutation I would've just used config set
.white-balloon-205
pulumi update —config
being a little surprising makes sense too.cloudaws.config.externalVpcId
prior to constructing any resources from cloud that depend on the network, you can override this in code. I recall working with a user who was doing this a couple months ago.
(This is exactly what we want to support in a more first class way as part of https://github.com/pulumi/pulumi-cloud/issues/601)full-dress-10026
09/28/2018, 4:33 AM.apply
.externalVpc
params prior to constructing the resources that require the network?cloud.Service
does not have any implicit dependencies on values from other resources, I believe I need to add some resources to the dependsOn
list, assuming that does what I expect 🙂cloud.Service
was created in the default-vpc that Pulumi created.white-balloon-205