parse-community / parse-server-s3-adapter

AWS S3 file storage adapter for Parse Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upgrade to AWS JS SDK v3 needed

mman opened this issue · comments

Today I started the alpha build of parse-server using the parse-server-s3-adapter and received this (for me new) warning message:

(node:1) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the migration guide at https://a.co/7PzMCcy

This seems to be coming from the fact that this repo depends on aws-sdk: 2

"aws-sdk": "2.1368.0"

Detailed migration instructions seem to be available here: https://github.com/aws/aws-sdk-js-v3/blob/main/UPGRADING.md

Thanks for opening this issue!

@mtrezza could parse maybe suppress the deprecation messages for now at least? This is spamming our service logs.
serverless/serverless#11750 (reply in thread)

require('aws-sdk/lib/maintenance_mode_message').suppress = true;

Would upgrading the AWS SDK solve the issue?