APIs & Integrations

KeganLester
Member

Code Snippet JS Missing AWS-SDK Module

SOLVE

When using the Chatflows, I created a new bot and am attempting to use the AWS SDK module that is said to be available in the documentation but I am getting an error saying the module doesn't exist. I tested this on both node 18.x and 20.x.Screenshot 2025-03-13 at 4.03.25 PM.pngScreenshot 2025-03-13 at 4.03.34 PM.png

0 Upvotes
1 Accepted solution
MrJustinGivens
Solution
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Code Snippet JS Missing AWS-SDK Module

SOLVE

So I think the issue is the ENTIRE package is too large or something wrong with it installed in Lamdba (hubspot backend).

 

Here's what I was able to get working, use specific clients within and using the @ symbol.

 

const awsDB = require('@aws-sdk/client-dynamodb')

View solution in original post

5 Replies 5
MrJustinGivens
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Code Snippet JS Missing AWS-SDK Module

SOLVE

Hey @KeganLester are you requiring the SDK outside of the exports.main?

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

KeganLester
Member

Code Snippet JS Missing AWS-SDK Module

SOLVE

Yes, I am. Does it need to be inside?Screenshot 2025-03-18 at 11.57.34 AM.png

0 Upvotes
MrJustinGivens
Solution
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Code Snippet JS Missing AWS-SDK Module

SOLVE

So I think the issue is the ENTIRE package is too large or something wrong with it installed in Lamdba (hubspot backend).

 

Here's what I was able to get working, use specific clients within and using the @ symbol.

 

const awsDB = require('@aws-sdk/client-dynamodb')

kennedyp
Community Manager
Community Manager

Code Snippet JS Missing AWS-SDK Module

SOLVE

Hi @KeganLester! Welcome to the Community-- happy to have you here 😊

 

I want to invite some subject matter experts to see if they have any insight

Hey @Jnix284, @stefen, or @GiantFocal have y'all experienced this or do you have any troubleshooting suggestions? 


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes
Jnix284
Hall of Famer

Code Snippet JS Missing AWS-SDK Module

SOLVE

I'm sorry @kennedyp, this is beyond my abilities with the API. Perhaps @MrJustinGivens  has some insight or can point @KeganLester in the right direction with the node library for aws-sdk 


If my reply answered your question please mark it as a solution to make it easier for others to find.


Jennifer Nixon