Skip to content

aleios-cloud/sls-dev-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sls-dev-tools

The Chrome Dev Tools for the Serverless World

⚠ Still in early POC stages, stable Alpha release expected in next weeks. ⚠

demo

To Run

  • Run yarn dev
  • Then yarn start -n {YOUR_STACK_NAME} -r {YOUR_REGION} [-t {START_TIME}]
  • If this doesn't work, have a look on AWS and see what your stack is called as it may be a different name than you expect, e.g. with -dev on the end
  • Try to choose a function with the arrow keys and enter to see the metrics. You may get an AccessDenied error in which case you must add the GetMetricData permission from CloudWatch in the IAM console on AWS.

Build

  • yarn build

A note on AWS API calls and pricing

This tool does make use of the AWS API to get metrics. Authentication is handled implicitly via the AWS NodeJS SDK. Pricing around Cloudwatch is designed for scale, but be warned that this tool is making calls to AWS.

Full details on AWS API pricing can be found here:

For instance, the cost of GetMetricData as of 25/08/19 was $0.01 per 1,000 metrics requested.

  • This tool take no liability in pricing data provided and please use AWS's docs to ensure pricing is appropriate for you.

The current list of calls made by the tool:

  • CloudFormation: listStackResources
  • CloudWatch: getMetricData
  • More may be added, check code for full list

Libs

Heavily based off the amazing blessed and blessed-contrib projects.

Core Team

Ben Ellerby Rob Cronin
Ben Ellerby Rob Cronin