Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cfn-deps

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cfn-deps

create DOT file from AWS CloudFormation Template files

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

cfn-deps

SampleImage

AWS CloudFormation のテンプレートファイル間の依存関係を DOT 言語 の依存グラフとして出力する。

テンプレートファイル間の依存関係には CloudFormation の Outputs および ImportValue 関数を考慮する。 ただし、複雑な Outputs/ImportValue 名を使用している場合は検知できない。 (JSON.stringify が一致する Outputs/ImportValue に依存関係があるとしている)

# Work
---
Outputs:
  Test1:
    Value: !Ref Res1
    Export:
      Name: !Sub ${Environment}-test-1
---
Resources:
  Test2:
    Paramenters:
      XXXId: !ImportValue
        "Fn::Sub": "${Environment}-test-1"
# Not Work
---
Outputs:
  Test2:
    Value: !Ref Res1
    Export:
      Name: !Join [ "-", [ !Ref Environment, "test", 1 ] ]
---
Resources:
  Test2:
    Paramenters:
      XXXId: !ImportValue
        "Fn::Sub": "${Environment}-test-1"

また、手動で依存関係を明示したい場合はコメント部分などに DependsOn: <relative_path_to_file> を記述することで依存を追加できる

# Work
---
Parameters:
  VpcId:  # DependsOn: other.yml
    Type: String
---
# other.yml
Resources:

Install

$ npm install -g cfn-deps

Usage

$ cfn-deps './**/*.yml' > deps.dot

Keywords

FAQs

Package last updated on 22 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc