AWS Timestream – SDK V3 Nodejs, TimestreamWriteClient.send() – TypeError: command.resolveMiddleware is not a function. How to solve this? – Amazon web services
I have the following lambda function in NodeJs 14.x using AWS SDK V3 for a timestream insertion process: 'use strict' // https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-timestream-write/index.html const { TimestreamWriteClient } = require("@aws-sdk/client-timestream-write") const client = new TimestreamWriteClient({ region: process.env.region }) module.exports.fnPostElectricityTimestream = async event…