aksio-insurtech / AppManager

MIT License
4 stars 2 forks source link

Move shared resource creation out of application environment creation and to its own stack #132

Closed einari closed 1 year ago

einari commented 1 year ago

We have shared resources like the container registry, this sits in a shared resource group and is also tied to a subscription that might be different from the rest of the resources in the application environment setup.

With the existing implementation it is linked to the stack that first creates it. If this stack is torn down it will tear down the shared resources as well. This is obviously not desirable. We want a separate stack for this linked to the creation of an application and not the environment.

You can see the SetupResourceGroup and how it has a check on the stack if the resource group belongs to the current stack. That in itself should have been the warning signal.