Hello everyone,
I’m new to Pulumi and have been struggling with an issue for several days. I’m using the Pulumi Automation API via REST to provision my infrastructure. Within my pipeline, I have multiple services and resources, and when a user requests the installation of a specific service, it should be added to the existing infrastructure. However, I’m encountering a problem where the installation of the requested service leads to the destruction of other services and resources in the infrastructure.
Here’s an example to illustrate the problem: Let’s say I have an existing infrastructure called ABC. When I request to install service D, the expected outcome is to have service D added to the infrastructure (+D). However, what’s actually happening is that other resources from infrastructure ABC are being destroyed (+D -ABC) along with the installation of service D.
To provide some context, here are the steps I take to install service D:
1. Select the stack.
2. Install service D.
I’ve also attempted to address the issue by importing a stack reference and passing the exported output of infrastructure ABC as input to service D. However, even with this approach, the problem persists.
I would greatly appreciate any assistance or guidance in resolving this issue. Thank you in advance for your help