lono xgraph

Usage

lono xgraph STACK

Description

Graphs dependencies tree of CloudFormation template resources.

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

Options

[--display=DISPLAY]    # graph or text
                       # Default: graph
[--noop], [--no-noop]  # noop mode
[--source=SOURCE]      # url or path to file with template
[--template=TEMPLATE]  # override convention and specify the template file to use
[--param=PARAM]        # override convention and specify the param file to use
[--variable=VARIABLE]  # override convention and specify the variable file to use

Runtime options:
-f, [--force]                    # Overwrite files that already exist
-p, [--pretend], [--no-pretend]  # Run but do not make any changes
-q, [--quiet], [--no-quiet]      # Suppress status output
-s, [--skip], [--no-skip]        # Skip files that already exist

Edit this page

See a typo or an error? You can improve this page. This website is available on GitHub and contributions are encouraged and welcomed. We love pull requests from you!