Questions tagged [aws-sdk-nodejs]

AWS SDK for JavaScript enables Node.JS developers to easily work with Amazon Web Services

The AWS SDK for JavaScript enables Node.JS developers to easily work with Amazon Web Services and build scalable solutions with Amazon S3, Amazon DynamoDB, Amazon Glacier, and more.

Getting Started

User Guide

API Documentation

519 questions
7
votes
1 answer

aws-amplify warning after updating angular application to the latest version 10.0

I have updated the angular application to the latest version, and keep getting the warning message from the @aws-amplify. I know angular 10 doesn't remend to use commonjs. Since the @aws-amplify is on that, how can I remove the warning? I tried…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
7
votes
1 answer

Upload Image into S3 bucket using Api Gateway, Lambda funnction

I'm trying to upload the image (base64) from the postman, I can see when I hit the Serverless API, something has been added in S3 bucket but not image, I'm using nodejs Lambda function, I tried so many solutions but that didn't work out. Please…
Nasreen Ustad
  • 1,564
  • 1
  • 19
  • 24
7
votes
2 answers

How many bits of integer data can be stored in a DynamoDB attribute of type Number?

DynamoDB's Number type supports 38 digits of decimal precision. This is not big enough to store a 128-bit integer which would require 39 digits. The max value is 340,282,366,920,938,463,463,374,607,431,768,211,455 for unsigned 128-bit ints or…
Justin Grant
  • 44,807
  • 15
  • 124
  • 208
6
votes
1 answer

Difference between aws-sdk vs @aws-sdk

There two different nodejs sdk libraries that I have encountered: aws-sdk and a set of libaries under @aws-sdk/. What's the difference between the two, and which one should I use?
Ruslan Plastun
  • 1,985
  • 3
  • 21
  • 48
6
votes
1 answer

Mocking AWS SES with Jest

I am trying to mock AWS SES in Jest but continue to get this timeout error: Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 5000ms timeout specified…
Borduhh
  • 1,975
  • 2
  • 19
  • 33
6
votes
2 answers

DynamoDb: How to retrieve the first item (by sort key) for each of a given list of partition keys

I have a dynamodb table that stores historical run data for processes that run on my server, I need a place where I can aggregate these processes and see the data for the latest of each of these. Each process has it's own ProcessId which is the…
6
votes
4 answers

Is it possible to use a newer version of the aws-sdk than provided in AWS Lambda?

The latest version of the aws-sdk has functions for ComprehendMedical, which I'd like to create a lambda function for. However, the version of the AWS-SDK is a few months outdated, and not able to use these functions yet. Wondering if there is a…
6
votes
1 answer

DynamoDB DocumentClient returns Set of strings (SS) attribute as an object

I'm new to DynamoDB. When I read data from the table with AWS.DynamoDB.DocumentClient class, the query works but I get the result in the wrong format. Query: { TableName: "users", ExpressionAttributeValues: { ":param":…
boriskuete
  • 65
  • 1
  • 6
6
votes
1 answer

How to pass script to UserData field in EC2 creation on AWS Lambda?

I'm trying to pass a script in Userdata field of a new EC2 instance created by an AWS Lambda (using AWS SDK for Javascript, Node.js 6.10): ... var paramsEC2 = { ImageId: 'ami-28c90151', InstanceType: 't1.micro', KeyName:…
5
votes
3 answers

AWS JS SDK suddenly throws "The Access Key ID or security token is invalid."

Has anyone also noticed a change in behavior of the AWS JS SDK recently? Because I have a CI pipeline in Github Actions, in which a Local DynamoDB is started and written to the DyanmoDB using this docClient setup: const docClient = new…
5
votes
1 answer

AWS: Unable to login into aws-sdk using sso credentials

I am trying to access AWS resources with AWS-SDK using SSO credentials from the node.js application. For this, first I have created my SSO profile from AWS CLI and then I am trying to use same profile in the application I have tried using following…
5
votes
0 answers

S3 gives SignatureDoesNotMatch error for PutObject command pre-signed url using aws-sdk v3

My Amazon S3 buckets were working fine until I decided to update my aws sdk from version v2 to the modular v3. I am able to programatically upload the file using the sdk but I am not able to upload files using the pre-signed url it generates. …
GilbertS
  • 591
  • 8
  • 12
5
votes
3 answers

Nodejs modularized aws-sdk v3 size getting increased

I am trying to reduce size of nodejs lambda bundle which uses aws-sdk. This is the original lambda package.json file: { "name": "lambdanodejs", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo…
5
votes
1 answer

Calling AWS API Gateway from AWS Lambda

The scenario is : I have a Rest api gateway which when triggered invokes a lambda which processes the request and returns the repsonse. This api endpoint is public. I have another lambda which will call this API gateway/endpoint and obtain response…
Yusuf
  • 321
  • 1
  • 7
  • 19
5
votes
3 answers

how to use vpc endpoint with ses in serverless

I have functions deployed in vpc which doesn't have nat gateway/ internet access. Goal: Send email through SES from this function (in vpc) I have tried using public private subnet with nat gateway to send emails and it works fine. But i am trying to…
Shubham
  • 1,288
  • 2
  • 11
  • 32
1 2
3
34 35