1.1.47 • Published 11 days ago

lambda-unsupported-runtimes-detector v1.1.47

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days ago

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.
1.1.47

11 days ago

1.1.45

18 days ago

1.1.46

18 days ago

1.1.44

25 days ago

1.1.43

1 month ago

1.1.42

2 months ago

1.1.39

2 months ago

1.1.41

2 months ago

1.1.40

2 months ago

1.1.38

2 months ago

1.1.37

2 months ago

1.1.36

2 months ago

1.1.35

2 months ago

1.1.34

2 months ago

1.1.33

2 months ago

1.1.32

2 months ago

1.1.30

3 months ago

1.1.31

3 months ago

1.1.29

3 months ago

1.1.28

3 months ago

1.1.27

3 months ago

1.1.26

3 months ago

1.1.25

3 months ago

1.1.24

3 months ago

1.1.23

4 months ago

1.1.22

4 months ago

1.1.21

4 months ago

1.1.19

4 months ago

1.1.20

4 months ago

1.1.18

4 months ago

1.1.17

4 months ago

1.1.16

4 months ago

1.1.15

4 months ago

1.1.12

4 months ago

1.1.11

4 months ago

1.1.14

4 months ago

1.1.13

4 months ago

1.1.9

5 months ago

1.1.10

5 months ago

1.1.8

5 months ago

1.1.7

5 months ago

1.1.6

5 months ago

1.1.5

5 months ago

1.1.4

5 months ago

1.1.3

6 months ago

1.1.2

6 months ago

1.1.1

6 months ago

1.1.0

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago