aws-sdk-js: RDSDataService is not working

RDSDataService is not working, is not doing nothing no errors, no logs.

Running aws lambda node js:

var rdsDataService = new AWS.RDSDataService({apiVersion: '2018-08-01'});
    var params = {
        awsSecretStoreArn: 'arn:xxxxx', /* required */
        dbClusterOrInstanceArn: 'arn:xxxxxxx', /* required */
        sqlStatements: 'select * from Member' /* required */
    };
    rdsDataService.executeSql(params, function(err, data) {
        console.log("log1");
        if (err)   { console.log("log2"); console.log(err, err.stack);  }// an error occurred
        else     {   console.log("log3");console.log(data);          } // successful response
    });
    console.log('End executeSql');

More info: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/RDSDataService.html#executeSql-property

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (9 by maintainers)

Most upvoted comments

@svenmilewski

Refer to Lambda Execution Environment and Available Libraries.

Lambda currently bundles 2.290.0, which does not have the RDSDataService included.

NPM has the latest version of the SDK.

You could manually bundle a current version of the SDK into your Lambda deployment package.

@asyba

The Service Team has indicated that only Aurora Clusters and Serverless Aurora are supported at this time.