Socket
Socket
Sign inDemoInstall

serverless-graph

Package Overview
Dependencies
2
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    serverless-graph

Serverless Graph - A plugin for creating a graph usable by graphviz.


Version published
Maintainers
1
Install size
1.96 MB
Created

Readme

Source

Serverless Plugin Boilerplate

This project was adapted from CFVIZ. Serverless Graph outputs your serverless architecture and resources as a Graphviz dot compatible output. Currently only supports the AWS provider.

Note: Serverless v1.x.x or higher is required.

Get Started

  • cd into serverless-graph and run:
npm link
  • cd into your Serverless Project's root folder and run:
npm link serverless-graph
  • Install graphviz
    • Homebrew - brew install graphviz
  • Add serverless-graph to the plugins section of your serverless.yml

Run

If you have any commandline params that don't have defaults you will have to pass in any opt variables as this plugin hooks into the package step and then reads the output

  • sls graph {--opts}
  • Output SVG
    • cat graph.out | dot -Tsvg -oexample.svg
  • Output PNG
    • cat graph.out | dot -Tpng -oexample.png
  • See Graphviz for more information.

TODO: Getting started - make npm package

  • npm install --save serverless-graph
  • Add serverless-graph to the plugins section of your serverless.yml
  • Install graphviz
    • Homebrew - brew install graphviz
  • sls graph {--opts} | dot -Tsvg -oexample.svg

Keywords

FAQs

Last updated on 08 Jun 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc