It is highly recommended to upgrade to AWS SDK v3 due to its enhanced modularity, which results in a smaller package size. When utilizing AWS SDK v3, only @aws-sdk/client-s3 will be installed. Additionally, if you are operating your project on a Lambda runtime, it's worth noting that newer Node.js runtimes come pre-installed with v3 as the default, such as Node 18 Lambda runtime.
It is highly recommended to upgrade to AWS SDK v3 due to its enhanced modularity, which results in a smaller package size. When utilizing AWS SDK v3, only @aws-sdk/client-s3 will be installed. Additionally, if you are operating your project on a Lambda runtime, it's worth noting that newer Node.js runtimes come pre-installed with v3 as the default, such as Node 18 Lambda runtime.