https://storj.dev/dcs/code/aws/nodejs
example shows usage for aws sdk v2 and throws warnings:

From the outdated docs
npm install --save aws-sdk
and
import S3 from "aws-sdk/clients/s3";
Update Docs to :
npm install --save @aws-sdk/client-s3
and
import { S3 } from '@aws-sdk/client-s3';
then update the rest of the code examples to work with the SDK v3