I thought that this would be answered quite clearly out there on the internet. But I have found no sufficient answer to when to use one type of stacks and when to use another type of stacks.
- So the main question is what is the difference between regular stacks and nested stacks?
I can perfectly model my infrastructure using only regular stacks. Also, I can perfectly model my infrastructure using only nested stacks and one root regular stack. From a project perspective - the only difference is stack type names. Everything else is the same.
For example, I am using AWS CDK - a synthesizer that can, for example, synthesize python to CloudFormation templates. I can do everything using Stacks and I can simply find-and-replace Stack to NestedStack. The infrastructure would be redeployed but nothing essentially has changed.
- So why would I use nested stack over a regular stack? What are their own advantages?