This message was deleted.
# general
s
This message was deleted.
b
Pulumi uses a desired state model to provision infrastructure. It sounds like during the REST call, you’re modifying the state of the stack which us removing all the infrastructure You can’t append to a service unless you append the code to the existing instantiation of service D, that isn’t how pulumi works
the way to design this is to provision an entirely new stack for service D and not modify the existing stack ABC at all
o
So you mean to say I’ve to use different stacks for installing different services and all these stacks should import resources from my main infra stack?
Or am I missing something?
b
yes, you can’t append resources to an existing stack in the way you want unless your rest API call somehow adds more resources to the code you use to define resources ABC
o
Can you point me to any links or docs that can help me to reuse resources from my infra stack but do all the changes in a separate stack. Thanks a lot for your response.
o
Thanks a ton 🙏
s
You may also find this article on using stack references helpful as well: https://www.pulumi.com/blog/iac-recommended-practices-using-stack-references/
o
Thank you 👍