When creating more than one stack, AWS Cloud Formation can take a very long time. It would be very nice to be able to create Stacks in parallel assuming there is no dependencies between the stacks.
For this to be achieved, the plugin MUST be able to determine dependencies between stacks.
If we have stacks A, B and C and Stack B depends on C then we can concurrently create A and C and then, after A is created we create B.
How to determine stack dependencies:
The way to do this is by looking at the parameters string of each stack. Stack B (In the example above) will have a parameter that will look like: param=A_output_name. So for each paramater in a stack we need to find those that reference other stacks and this will give us the dependency graph.