# Code Snippet JS Missing AWS-SDK Module

**URL:** <https://community.hubspot.com/t/code-snippet-js-missing-aws-sdk-module/128093>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [March 17, 2025, 3:16pm UTC](https://community.hubspot.com/t/code-snippet-js-missing-aws-sdk-module/128093 "2025-03-17T15:16:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KeganLester](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@KeganLester](https://community.hubspot.com/u/KeganLester)\
**Post date:** [March 17, 2025, 3:16pm UTC](https://community.hubspot.com/t/code-snippet-js-missing-aws-sdk-module/128093/1 "2025-03-17T15:16:27Z")

</div>

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.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/a/ca2f362d4fc02b0d443546a594afe0730e270370.png)

 ![Screenshot 2025-03-13 at 4.03.34 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/5/e55816d2f1d0a33906196fd51e929589dac4eee1.png)

---

<div class="post-metadata">

**Author:** ![kennedyp](https://avatars.discourse-cdn.com/v4/letter/k/49beb7/32.png) [@kennedyp](https://community.hubspot.com/u/kennedyp)\
**Post date:** [March 18, 2025, 12:27am UTC](https://community.hubspot.com/t/code-snippet-js-missing-aws-sdk-module/128093/2 "2025-03-18T00:27:36Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [March 18, 2025, 1:49pm UTC](https://community.hubspot.com/t/code-snippet-js-missing-aws-sdk-module/128093/3 "2025-03-18T13:49:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![MrJustinGivens](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mrjustingivens/32/49537_2.png) [@MrJustinGivens](https://community.hubspot.com/u/MrJustinGivens)\
**Post date:** [March 18, 2025, 5:29pm UTC](https://community.hubspot.com/t/code-snippet-js-missing-aws-sdk-module/128093/4 "2025-03-18T17:29:46Z")

</div>

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

```auto

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

```

---

<div class="post-metadata">

**Author:** ![KeganLester](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@KeganLester](https://community.hubspot.com/u/KeganLester)\
**Post date:** [March 18, 2025, 5:58pm UTC](https://community.hubspot.com/t/code-snippet-js-missing-aws-sdk-module/128093/5 "2025-03-18T17:58:25Z")

</div>

Yes, I am. Does it need to be inside?

 ![Screenshot 2025-03-18 at 11.57.34 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/4/d4d65b62edd9641d40c2be09de302244e72972b0.png)

---

<div class="post-metadata">

**Author:** ![MrJustinGivens](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mrjustingivens/32/49537_2.png) [@MrJustinGivens](https://community.hubspot.com/u/MrJustinGivens)\
**Post date:** [March 19, 2025, 3:19pm UTC](https://community.hubspot.com/t/code-snippet-js-missing-aws-sdk-module/128093/6 "2025-03-19T15:19:33Z")

</div>

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’)
