esc
esc copied to clipboard
If an environment is being imported then don't allow deletion
Two parts to this:
- If you have two environments (
env-aandenv-b), and you importenv-aintoenv-band then deleteenv-a, you don't get any warning that it's being imported and then you can't open, run, or indeed get any values out ofenv-b. - If we know that a stack has an environment attached (because it's part of the stack config and has done an update) then stop the environment being deleted until it has been removed from the stack config and a further update has occurred.
The first step is to provide insights into those dependencies.
The second step is to allow for user controls such as this: https://github.com/pulumi/esc/issues/358