# AWS SDK Update (v2 → v3)

In this PR (opens new window), we upgraded the AWS SDK from v2 to v3, which required quite a few syntax changes. In v2, you had to import the entire SDK (e.g. var AWS = require('aws-sdk')), while v3 is fully modularised, meaning each Lambda now imports only the specific AWS services it needs — for example:

const { S3Client } = require('@aws-sdk/client-s3');

This update was necessary to stay compatible with newer Node.js versions (we updated from Node 12 to 18), but it ended up breaking several of our existing Lambdas due to the different import structure and API changes.

Given the time pressure with the Hamburg referendum coming up, we prioritised fixing only the Lambdas that were currently used by the Hamburg site. Some older or unused functions were left as-is for now.

One notable impact was that the Expedition Grundeinkommen login's Lambda stopped working, so we decided to remove the signup option from the site.

Last Updated: 10/28/2025, 4:04:21 PM