Ok, so the simple questions is: How to obtain at cdk runtime previous stack output. Say I have a stack that is going to export 1 output and I want to access this value at the beginning and generate a new one.
The broader problem is, I am trying to introduce some smart blue-green deployments. Where I read to which color current stack was deployed last time toggle the color and deploy accordingly.
Do I have to use awscli to obtain the output? I would prefer to have all logic inside cdk.