npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

lambda-unsupported-runtimes-detector

v1.1.47

Published

<!-- omit from toc --> # Lambda Unsupported Runtimes Detector (lurd)

Downloads

110

Readme

Lambda Unsupported Runtimes Detector (lurd)

CLI tool that detects your deprecated runtimes and which cloudformaiton stack they belong to

Dependabot Licence cd

Have you like many others started your cloud journey by producing loads of lambdas? As time goes by you might have lambdas with deprecated runtimes. Do you suspect you have deprecated ones? Then go ahead and use this tool to scan your AWS account.

But there's already a trusted advisor check that can list deprecated lambda runtimes?
Yes, but it requires business or enterprise support plans. Besides, Lambda Unsupported Runtimes Detector (lurd) lists the stacks that the function belongs to which reduces the amount of time spent on detective work.

Note
This tool only scans lambdas created through AWS cloudformation. The idea is that you should easliy be able to overlook a list of functions and which stack they belong to in order to take action.

Getting started

  1. Install the tool
npm install -g lambda-unsupported-runtimes-detector
  1. Authenticate to your AWS account though CLI

Commands

scan

Usage: lurd scan [options]

Performs the scanning on the stacks

Options:
  -r, --region [region]  region to scan
  -h, --help             display help for command

examples:

# Scan for stacks associated with deprecated functions in the eu-north-1 region
lurd scan --region eu-north-1
# Scan for stacks associated with deprecated functions in all regions enabled in the account
lurd scan

Note: the result is stored locally in the .stacks folder. You should use the list command to query the result.

list

Usage: lurd list [options]

List stacks with deprecated functions, requires the scan command to run first

Options:
  -t, --tag-key-value-filter <tagKeyFilter>  list of key values to search for in tags
  -r, --region [region]                      list stacks from region
  --broken-stacks                            if you only want to list broken stacks
  -h, --help                                 display help for command

examples:

# List all stacks and it's related deprecated functions mathing the tag "team: operations" in eu-north-1 region
lurd list --tag-key-value-filter team=operations --region eu-north-1

Note, by providing the --tag-key-value-filter lurd first tries to match the provided key value tag on the cloudformation stack. If not found, lurd will look at the functions related to the stack

# List all stacks and it's related deprecated functions in eu-north-1 region
lurd list --region eu-north-1
# List all stacks that for some reason cannot be evaluated. Most commonly is that there's a drift where the lambda has been deleted manually but the stack has not been updated.
lurd list --broken-stacks
# List all stacks and it's related deprecated functions
lurd list

Known issues and limitations

  • Currently lurd is scraping html to get the list of AWS lambda deprecated runtimes. Scraping is fragile so there's a hardcoded fallback. However, that hardcoded fallback might not be 100% up to date.