In my previous post, I walked through building pyodbc for Python 3.9 Lambda functions. With the release of Python 3.13 support in Lambda, it’s time for an update. Here’s the Dockerfile that builds a Lambda container image with pyodbc and SQL Server support: The key differences from the Python 3.9 version include: Example Usage Create …| Randy Westergren
As I discussed in a previous post, connecting to MSSQL with Python in Lambda can be tricky. While I had solved this earlier with pyodbc, using pymssql / FreeTDS is an another option and I wanted to similarly share the build process for creating its respective Lambda layer. Here’s the multi-stage Dockerfile: FROM public.ecr.aws/lambda/python:3.9 as …| Randy Westergren