You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we have several microservices and due to some price optimizations, we have resources for each service in multiple azure subscriptions. Also, we would like to start slowly with Pulumi so our POC is offline, and the state is stored in storage account.
Since we have a lot of services in place, we would like to import existing infrastructure into the state so in the future new and existing services will be aligned with each other.
I have started playing around and I am having quite a problem importing existing infrastructure to Pulumi state - any idea how I should do this?
So far if I understand it correctly one stack means one subscription.
I did try:
use custom provider to deliver resource into another subscription however this custom provider ensures that the resource must be replaced - obviously, I do not want to replace anything.
I did try to use custom resource - the custom resource is taken whole as a component, and I cannot see what is going to be changed (which resources under this new component)
I'm testing multiple stacks with reference on each other however I'm quite stuck with organization name because we are offline.
Is there any recommendation how to structure the project (deployment) in case that one microservice has resource in multiple subscriptions/providers?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
we have several microservices and due to some price optimizations, we have resources for each service in multiple azure subscriptions. Also, we would like to start slowly with Pulumi so our POC is offline, and the state is stored in storage account.
Since we have a lot of services in place, we would like to import existing infrastructure into the state so in the future new and existing services will be aligned with each other.
I have started playing around and I am having quite a problem importing existing infrastructure to Pulumi state - any idea how I should do this?
So far if I understand it correctly one stack means one subscription.
I did try:
Is there any recommendation how to structure the project (deployment) in case that one microservice has resource in multiple subscriptions/providers?
Beta Was this translation helpful? Give feedback.
All reactions