Sha256: 554e3476e7f134d65cd48f559284919f3499f0eed7dff993b680ca78bd37544c

Contents?: true

Size: 877 Bytes

Versions: 12

Compression:

Stored size: 877 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
    $

Here's a screenshot of the output with the colored 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

12 entries across 12 versions & 1 rubygems

Version Path
lono-5.2.8 lib/lono/help/cfn/diff.md
lono-5.2.7 lib/lono/help/cfn/diff.md
lono-5.2.6 lib/lono/help/cfn/diff.md
lono-5.2.5 lib/lono/help/cfn/diff.md
lono-5.2.4 lib/lono/help/cfn/diff.md
lono-5.2.3 lib/lono/help/cfn/diff.md
lono-5.2.2 lib/lono/help/cfn/diff.md
lono-5.2.1 lib/lono/help/cfn/diff.md
lono-5.2.0 lib/lono/help/cfn/diff.md
lono-5.1.1 lib/lono/help/cfn/diff.md
lono-5.1.0 lib/lono/help/cfn/diff.md
lono-5.0.1 lib/lono/help/cfn/diff.md