Receiving TypeError: AWS.RDSDataService is not a constructorReferenceError: describe is not defined NodeJsAssertionError: path must be a stringthe command “npm” returns with an errorTypeError: JwtStrategy is not a constructor; NodeJSHow to add folder as module in lambda function?Cannot find module 'internal/util/types'MEAN Stack : module .exports is not a functionNodejs Router require function but got an Objectcommand gulp error “assert.js:42 throw new errors.AssertionError”Server dosen't reconognize mondodb module whit angular

Was Self-modifying-code possible just using BASIC?

Proving that a Russian cryptographic standard is too structured

How to avoid typing 'git' at the begining of every git command

If there's something that implicates the president why is there then a national security issue? (John Dowd)

Analogy between an unknown in an argument, and a contradiction in the principle of explosion

How can I make 12 tone and atonal melodies sound interesting?

Why we don’t make use of the t-distribution for constructing a confidence interval for a proportion?

2019 gold coins to share

A map of non-pathological topology?

A word that means "blending into a community too much"

Why is Na5 not played in this line of the French Defense, Advance Variation?

Why did Intel abandon unified CPU cache?

Does the new finding on "reversing a quantum jump mid-flight" rule out any interpretations of QM?

How can one's career as a reviewer be ended?

How long is it safe to leave marker on a Chessex battle map?

I have a problematic assistant manager, but I can't fire him

Do you have to have figures when playing D&D?

Teaching a class likely meant to inflate the GPA of student athletes

Can I utilise a baking stone to make crepes?

What would be the way to say "just saying" in German? (Not the literal translation)

Live action TV show where High school Kids go into the virtual world and have to clear levels

How to write a convincing religious myth?

Russian word for a male zebra

Shouldn't Apple consider allowing use of Apple Pencil while it's charging?



Receiving TypeError: AWS.RDSDataService is not a constructor


ReferenceError: describe is not defined NodeJsAssertionError: path must be a stringthe command “npm” returns with an errorTypeError: JwtStrategy is not a constructor; NodeJSHow to add folder as module in lambda function?Cannot find module 'internal/util/types'MEAN Stack : module .exports is not a functionNodejs Router require function but got an Objectcommand gulp error “assert.js:42 throw new errors.AssertionError”Server dosen't reconognize mondodb module whit angular






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Attempting to use the RDSDataService in AWS Lambda as follows:



const AWS = require('aws-sdk');

AWS.config.update(
region: 'us-east-1'
)
AWS.config.apiVersions =
rdsdataservice: '2018-08-01',
// other service API versions
;

const rdsdataservice = new AWS.RDSDataService();

exports.handler = function(event, context, callback)
callback(null, 'ok')
;


And receiving error:




"errorMessage": "AWS.RDSDataService is not a constructor",
"errorType": "TypeError",
"stackTrace": [
"Module._compile (module.js:652:30)",
"Object.Module._extensions..js (module.js:663:10)",
"Module.load (module.js:565:32)",
"tryModuleLoad (module.js:505:12)",
"Function.Module._load (module.js:497:3)",
"Module.require (module.js:596:17)",
"require (internal/module.js:11:18)"




Nodejs version: 8.10



Any idea what's going on? I've set region and API version










share|improve this question
























  • Have you tested it locally? I have and it works...just trying to troubleshoot what might be going on with you

    – Thales Minussi
    Mar 24 at 21:03







  • 3





    What is the 'aws-sdk' package version?

    – eL_Finito
    Mar 24 at 21:04











  • Thank you @eL_Finito and Thales - I just tried creating a custom layer in aws-lambda and uploaded an archive containing node deps: "aws-sdk": "^2.4.27.0" and no longer receive this error.

    – mdibound
    Mar 24 at 22:18

















0















Attempting to use the RDSDataService in AWS Lambda as follows:



const AWS = require('aws-sdk');

AWS.config.update(
region: 'us-east-1'
)
AWS.config.apiVersions =
rdsdataservice: '2018-08-01',
// other service API versions
;

const rdsdataservice = new AWS.RDSDataService();

exports.handler = function(event, context, callback)
callback(null, 'ok')
;


And receiving error:




"errorMessage": "AWS.RDSDataService is not a constructor",
"errorType": "TypeError",
"stackTrace": [
"Module._compile (module.js:652:30)",
"Object.Module._extensions..js (module.js:663:10)",
"Module.load (module.js:565:32)",
"tryModuleLoad (module.js:505:12)",
"Function.Module._load (module.js:497:3)",
"Module.require (module.js:596:17)",
"require (internal/module.js:11:18)"




Nodejs version: 8.10



Any idea what's going on? I've set region and API version










share|improve this question
























  • Have you tested it locally? I have and it works...just trying to troubleshoot what might be going on with you

    – Thales Minussi
    Mar 24 at 21:03







  • 3





    What is the 'aws-sdk' package version?

    – eL_Finito
    Mar 24 at 21:04











  • Thank you @eL_Finito and Thales - I just tried creating a custom layer in aws-lambda and uploaded an archive containing node deps: "aws-sdk": "^2.4.27.0" and no longer receive this error.

    – mdibound
    Mar 24 at 22:18













0












0








0


1






Attempting to use the RDSDataService in AWS Lambda as follows:



const AWS = require('aws-sdk');

AWS.config.update(
region: 'us-east-1'
)
AWS.config.apiVersions =
rdsdataservice: '2018-08-01',
// other service API versions
;

const rdsdataservice = new AWS.RDSDataService();

exports.handler = function(event, context, callback)
callback(null, 'ok')
;


And receiving error:




"errorMessage": "AWS.RDSDataService is not a constructor",
"errorType": "TypeError",
"stackTrace": [
"Module._compile (module.js:652:30)",
"Object.Module._extensions..js (module.js:663:10)",
"Module.load (module.js:565:32)",
"tryModuleLoad (module.js:505:12)",
"Function.Module._load (module.js:497:3)",
"Module.require (module.js:596:17)",
"require (internal/module.js:11:18)"




Nodejs version: 8.10



Any idea what's going on? I've set region and API version










share|improve this question
















Attempting to use the RDSDataService in AWS Lambda as follows:



const AWS = require('aws-sdk');

AWS.config.update(
region: 'us-east-1'
)
AWS.config.apiVersions =
rdsdataservice: '2018-08-01',
// other service API versions
;

const rdsdataservice = new AWS.RDSDataService();

exports.handler = function(event, context, callback)
callback(null, 'ok')
;


And receiving error:




"errorMessage": "AWS.RDSDataService is not a constructor",
"errorType": "TypeError",
"stackTrace": [
"Module._compile (module.js:652:30)",
"Object.Module._extensions..js (module.js:663:10)",
"Module.load (module.js:565:32)",
"tryModuleLoad (module.js:505:12)",
"Function.Module._load (module.js:497:3)",
"Module.require (module.js:596:17)",
"require (internal/module.js:11:18)"




Nodejs version: 8.10



Any idea what's going on? I've set region and API version







node.js amazon-web-services aws-lambda aws-sdk






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 24 at 20:57







mdibound

















asked Mar 24 at 20:40









mdiboundmdibound

346




346












  • Have you tested it locally? I have and it works...just trying to troubleshoot what might be going on with you

    – Thales Minussi
    Mar 24 at 21:03







  • 3





    What is the 'aws-sdk' package version?

    – eL_Finito
    Mar 24 at 21:04











  • Thank you @eL_Finito and Thales - I just tried creating a custom layer in aws-lambda and uploaded an archive containing node deps: "aws-sdk": "^2.4.27.0" and no longer receive this error.

    – mdibound
    Mar 24 at 22:18

















  • Have you tested it locally? I have and it works...just trying to troubleshoot what might be going on with you

    – Thales Minussi
    Mar 24 at 21:03







  • 3





    What is the 'aws-sdk' package version?

    – eL_Finito
    Mar 24 at 21:04











  • Thank you @eL_Finito and Thales - I just tried creating a custom layer in aws-lambda and uploaded an archive containing node deps: "aws-sdk": "^2.4.27.0" and no longer receive this error.

    – mdibound
    Mar 24 at 22:18
















Have you tested it locally? I have and it works...just trying to troubleshoot what might be going on with you

– Thales Minussi
Mar 24 at 21:03






Have you tested it locally? I have and it works...just trying to troubleshoot what might be going on with you

– Thales Minussi
Mar 24 at 21:03





3




3





What is the 'aws-sdk' package version?

– eL_Finito
Mar 24 at 21:04





What is the 'aws-sdk' package version?

– eL_Finito
Mar 24 at 21:04













Thank you @eL_Finito and Thales - I just tried creating a custom layer in aws-lambda and uploaded an archive containing node deps: "aws-sdk": "^2.4.27.0" and no longer receive this error.

– mdibound
Mar 24 at 22:18





Thank you @eL_Finito and Thales - I just tried creating a custom layer in aws-lambda and uploaded an archive containing node deps: "aws-sdk": "^2.4.27.0" and no longer receive this error.

– mdibound
Mar 24 at 22:18












1 Answer
1






active

oldest

votes


















3














It have to works with the latest aws-sdk package.



You can check the package version with this command:



npm show aws-sdk version


You can check the released versions here: https://www.npmjs.com/package/aws-sdk






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55328359%2freceiving-typeerror-aws-rdsdataservice-is-not-a-constructor%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    It have to works with the latest aws-sdk package.



    You can check the package version with this command:



    npm show aws-sdk version


    You can check the released versions here: https://www.npmjs.com/package/aws-sdk






    share|improve this answer



























      3














      It have to works with the latest aws-sdk package.



      You can check the package version with this command:



      npm show aws-sdk version


      You can check the released versions here: https://www.npmjs.com/package/aws-sdk






      share|improve this answer

























        3












        3








        3







        It have to works with the latest aws-sdk package.



        You can check the package version with this command:



        npm show aws-sdk version


        You can check the released versions here: https://www.npmjs.com/package/aws-sdk






        share|improve this answer













        It have to works with the latest aws-sdk package.



        You can check the package version with this command:



        npm show aws-sdk version


        You can check the released versions here: https://www.npmjs.com/package/aws-sdk







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 25 at 9:12









        eL_FinitoeL_Finito

        285110




        285110





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55328359%2freceiving-typeerror-aws-rdsdataservice-is-not-a-constructor%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript