Sha256: 5669b8d7bd55c0a60c113a9d5f2813d113073dbde97b2a58ea4d1365cb5868f5

Contents?: true

Size: 914 Bytes

Versions: 8

Compression:

Stored size: 914 Bytes

Contents

Displays code diff of the generated CloudFormation template locally vs the existing template on AWS. You can set a desired diff viewer by setting the `LONO_DIFF` environment variable.

## Examples

    $ lono cfn diff ec2
    Using template: output/templates/ec2.yml
    Using parameters: config/params/development/ec2.txt
    No detected app/scripts
    Generating CloudFormation templates:
      output/templates/ec2.yml
      output/params/ec2.json
    Generating CloudFormation source code diff...
    Running: colordiff /tmp/existing_cfn_template.yml output/templates/ec2.yml
    19c19
    <     Default: t2.small
    ---
    >     Default: t2.medium
    $ subl -a ~/.lono/settings.yml
    $

Here's a screenshot of the output with the colorized diff:

<img src="/img/reference/lono-cfn-diff.png" alt="Stack Update" class="doc-photo">

A `lono cfn diff` is perform automatically as part of `lono cfn update`.

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lono-4.2.4 lib/lono/help/cfn/diff.md
lono-4.2.3 lib/lono/help/cfn/diff.md
lono-4.2.2 lib/lono/help/cfn/diff.md
lono-4.2.1 lib/lono/help/cfn/diff.md
lono-4.2.0 lib/lono/help/cfn/diff.md
lono-4.1.0 lib/lono/help/cfn/diff.md
lono-4.0.6 lib/lono/help/cfn/diff.md
lono-4.0.5 lib/lono/help/cfn/diff.md