alexa-skills-kit-sdk-for-nodejs icon indicating copy to clipboard operation
alexa-skills-kit-sdk-for-nodejs copied to clipboard

Aws sdk V2 in maintenance mode, upgrade for v3

Open colas-gosselin-wmx opened this issue 2 years ago • 3 comments

I'm submitting a...


[x ] Feature request

Feature request

The sdk still use aws-sdk v2, which is put to maintenance mode in 2023. It should be great to upgrade it to aws-sdk v3.

colas-gosselin-wmx avatar Feb 14 '23 14:02 colas-gosselin-wmx

I agree, error messages are now appearing in the lambda cloudwatch logs regarding AWS SDK v2 going into maintenance mode. This is annoying as it is triggering cloudwatch alarms I have setup.

allthepies avatar Feb 23 '23 16:02 allthepies

This is happening for me, too. I'm in the middle of updating AWS SDK to v3 and am finding that the following happens -

with this set up

const dynamoDBClient = new DynamoDB(dynamoDBClientConfig);

const longTermDataPersistenceAdapter: PersistenceAdapter = new DynamoDbPersistenceAdapter({
    dynamoDBClient,
    tableName: longTermTableName,
    partitionKeyName: 'userId',
});

we then get an error with the dynamoDBClient because the DynamoDbPersistenceAdapter relies on the DynamoDB class from AWS SDK v2.

aunt-kitty-codes avatar Jul 21 '23 17:07 aunt-kitty-codes

I agree, error messages are now appearing in the lambda cloudwatch logs regarding AWS SDK v2 going into maintenance mode. This is annoying as it is triggering cloudwatch alarms I have setup.

Crazy isn't it? Over 2 years now... but it looks like there's now a way of disabling these warning from clogging up your logs...

https://github.com/aws/aws-sdk-js/issues/4354

Either use env var AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE=1 or require('aws-sdk/lib/maintenance_mode_message').suppress = true;

talkingnews avatar Oct 21 '23 14:10 talkingnews