question

Luca Martinucci avatar image
Luca Martinucci asked

How to tell which version of AWS SDK a Lambda function uses?

I have developed a skill that invokes as endpoint a lambda function written in nodejs 14.x.

The skill makes use of some AWS SDK modules, namely DynamoDB and SES.

I didn't have to explicitly install them, unlike the ASK modules, as they are provided by the AWS runtime.

How can I tell from which version of AWS SDK, v2 or v3, are the modules my skill uses?

Is this a configurable setting of the lambda function?

I'd like to know whether I should plan a upgrade to the newest version of the AWS SDK, in order to make my function up-to-date.

sdkawssdk version
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Arnaud Courtecuisse avatar image
Arnaud Courtecuisse answered

At the moment, Lambda runs with the V2: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html

You can switch to V3 by manually installing the SDK in your package dependencies.

2 comments
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Luca Martinucci avatar image Luca Martinucci commented ·
Thanks for the answer.

So, what is going to happen when Lambda switches to V3?

Will the V2 modules I have being using so far automatically be updated to their V3 versions?

Or, in other words, do Lambda functions automatically use the most recent available version of the AWS SDK modules according to the runtime AWS provides?

I guess this behavior, as I have not found any setting in the Lambda functions that refers to the AWS runtime.

0 Likes 0 ·
KirkC@Amazon avatar image KirkC@Amazon ♦♦ Luca Martinucci commented ·

I think this question would be best directed to AWS themselves as the owners of both Lambda, and the AWS SDK. The AWS Lambda forums can be found here:
https://forums.aws.amazon.com/forum.jspa?forumID=186

Alternatively you may reach out to AWS directly using the following contact form:
https://aws.amazon.com/contact-us/

0 Likes 0 ·