cfn-changeset-viewer

0.0.3 • Public • Published

cfn-changeset-viewer

This CLI will view the changes calculated in a CloudFormation ChangeSet in a more human-friendly way, including rendering details from a nested change set.

Usage

cfn-changeset-viewer <changeset-id>
Usage:
  <changeset-id> the id of the changeset to view

Display

A table will be printed to stdout, scaling to fit the width of your terminal. From left to right are the following:

  • An icon showing what kind of change has been made (Add: +, Modify: ~, Remove: -, Import: , Dynamic: ?)
  • Whether or not the resource will be replaced (True: !, Conditional: ?, False: empty)
  • Type of the resource being changed
  • LogicalId of the event's resource (for nested stacks, this will be rendered as NestedStack/NestedResource)
  • The property being modified
  • The source of that modification (!Ref/!GetAtt, direct modification, or automatic change)

Example

$ npx cfn-changeset-viewer arn:aws:cloudformation:us-east-1:123123123123:changeSet/release-42-1-FooBar
     RPL  RESOURCE TYPE               LOGICAL ID                  PROPERTY                           CAUSE
[+]       AWS::CloudFormation::Stack  NestedStack
[+]       AWS::Lambda::Function       NestedStack/LambdaFunction
[+]       AWS::SQS::Queue             NestedStack/MyQueue
[-]       AWS::S3::Bucket             NestedStack/FooBucket
[+]       AWS::IAM::Role              NestedStack/TheRole
[~]  [!]  AWS::Lambda::Function       MainFunction
                                                                  Properties.Environment             direct modification
                                                                  Properties.FunctionName            direct modification
                                                                  Properties.Code                    direct modification
                                                                  Properties.MessageRetentionPeriod  direct modification
                                                                  Properties.QueueName               direct modification

Package Sidebar

Install

npm i cfn-changeset-viewer

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

9.51 kB

Total Files

4

Last publish

Collaborators

  • trek10-package-manager