question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RDSDataService is not working

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:20 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
srchasecommented, Nov 26, 2018

@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.

1reaction
srchasecommented, Nov 27, 2018

@asyba

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS RDSDataService query not running - Stack Overflow
I have 1 record in my database and when I try to query it, I get no results, and neither the error or...
Read more >
Class: AWS.RDSDataService — AWS SDK for JavaScript
Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora Serverless v1 DB cluster. To run these statements, you...
Read more >
RDSDataService — Boto3 Docs 1.18.52 documentation - AWS
Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora Serverless DB cluster. To run these statements, you work...
Read more >
AWSSDK.RDSDataService 3.7.100.44 - NuGet
Version Downloads Last updated 3.7.100.44 61 3 days ago 3.7.100.43 138 4 days ago 3.7.100.42 62 5 days ago
Read more >
data-api-client-workers - npm
There are no other projects in the npm registry using ... RDSDataService client to make working with async/await or Promise chains easier ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found