Example

With more complex CloudFormation templates, the dependency can get difficult to follow. Visualizing the dependencies is helpful.

lono code import https://s3.amazonaws.com/solutions-reference/aws-waf-security-automations/latest/aws-waf-security-automations.template --blueprint waf
lono xgraph waf

This above command generates a dependency chart. The command uses the DependsOn attribute specified in each resource to figure this out. It does not show implied dependencies that CloudFormaton automatically computes for us. The chart looks like this:

The chart is generated with Graphviz. To install:

brew install graphviz

Blog Post also covers this: lono inspect depends Tutorial Introduction