https://pulumi.com logo
f

full-dress-10026

10/05/2018, 8:59 PM
If I pass a
name
to a
new aws.cloudformation.Stack
and a CF stack with that name exists, will it use that CF stack?
w

white-balloon-205

10/05/2018, 9:01 PM
No - but you can use
.get()
to get the existing stack and use that to access its outputs.
f

full-dress-10026

10/05/2018, 9:01 PM
Can I modify the stack?
w

white-balloon-205

10/05/2018, 9:02 PM
No - not currently. https://github.com/pulumi/pulumi/issues/1662 is tracking being able to adopt a resource into Pulumi and then make changes to it.
f

full-dress-10026

10/05/2018, 9:04 PM
In my case the resource is already managed by Pulumi but in another project.
w

white-balloon-205

10/05/2018, 9:05 PM
I see. Then you likely do want
get
in this second project so that you don’t have two stacks trying to manage the same resource.
f

full-dress-10026

10/05/2018, 9:05 PM
But that's what I'd like to do 😉
Project 1 provisions some base resources via CF (in Pulumi) and triggers builds of other services. After some other services have been deployed, project 2 needs to update the CF stack parameters to match newly generated values.