Automagically determining which AWS Lambda runtimes are deprecated or end-of-life

Featured image for sharing metadata for article

One of the great things about AWS Lambda is that code you wrote several years ago can run, receiving security updates to the underlying runtime, at some point AWS removes support for the runtime.

This is done in two stages, and once hitting the "end of life" phase, you can no longer perform updates to the Lambda, meaning you'll generally need to do some underlying code changes as well as updating the runtime version.

I noticed that a couple of things in my personal infrastructure needed an update, as they were running rather outdated versions of the runtimes, which were visible in a Trusted Advisor report.

Because I wanted an alternative that I could use for my own reporting needs as well, I've put together a Go command-line tool that can do this, found on GitLab.

go install gitlab.com/tanna.dev/endoflife-checker/cmd/aws-lambda-endoflife@HEAD

Then, to produce the report, run:

aws-lambda-endoflife -report

This will auto-detect AWS configuration, and can be tweaked using the usual environment variables such as:

env AWS_DEFAULT_REGION=mars-east-1 aws-lambda-endoflife -report

This then produces a tab-separated value (TSV) formatted output that can be put into a spreadsheet tool like Google Sheets for easier filtering.

The deprecation data is currently hardcoded, because as far as I could tell there's no way to get a machine-parseable form of the deprecation information. If you're aware of a way, let me know!

Written by Jamie Tanna's profile image Jamie Tanna on , and last updated on .

Content for this article is shared under the terms of the Creative Commons Attribution Non Commercial Share Alike 4.0 International, and code is shared under the Apache License 2.0.

#blogumentation #aws-lambda.

Also on:

This post was filed under articles.

Interactions with this post

Interactions with this post

Below you can find the interactions that this page has had using WebMention.

Have you written a response to this post? Let me know the URL:

Do you not have a website set up with WebMention capabilities? You can use Comment Parade.