Search code examples
amazon-web-servicesaws-lambdaaws-sdk-jsaws-sdk-nodejs

How to find the aws-sdk version in v3 javascript


I'm aware we can find the current aws-sdk(v2) version in lambda runtime from AWS.VERSION environment variable. In v3, aws-sdk is modularized, is there a way to find the which version of the aws-sdk client lib used in lambda runtime?


Solution

  • You could do this:

    import { version } from '@aws-sdk/client-s3/package.json' assert { type: 'json' };