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
0
votes
0 answers

How to get an object with wildscard bucket key in aws js-sdk

I use ceph to store my object. I just download the file from other rescources and store it in ceph with unique filename and the original postfix. I wander if i can retrive an object without the postfix like: // just assume the file path is…
Aflext
  • 309
  • 4
  • 15
0
votes
0 answers

Get a subset of objects from a large S3 bucket?

I have a large S3 bucket which contains thousands of files. When the files are needed, I know the keys and it is always just a few of them, maybe 50 as maximum. Files are quite small, 1KB each. Which is the best way of getting them from a Lambda…
0
votes
1 answer

AWS: Is createLogGroup operation idempotent?

I am using Node SDK for AWS, I have a question regarding the createLogGroup and createLogStream operations, are these operations idempotent? i.e I can call create multiple times without having to worry about duplication or error. Has anyone tried…
aks
  • 8,796
  • 11
  • 50
  • 78
0
votes
1 answer

Get subroutine to return value

the workflow is to build a AWS IAM user access key object. Then push to a global array. And finally print the array. The issue is where a subroutine is called within a forEach, to get the users access keys. The access keys are returned in a…
Theo Sweeny
  • 1,033
  • 14
  • 26
0
votes
1 answer

Conceptual question: How do React Native, Apollo, Node, and GraphQL all work together?

I'm new to GraphQL, Apollo, AWS S3, and Redux. I've read the tutorials for each and I'm familiar with React Native, Node, Heroku, and Mongo. I'm having trouble understanding the following: how a "GraphQL Server" is hosted for a mobile device using…
0
votes
2 answers

AWS SDK can´t connect behind corporate proxy

My workstation is behind a corporate proxy, I have set environment variables and I am able to use everything but aws-sdk with NodeJS. Here a dump of the TCP connection: No. Time Source Destination Protocol…
JrBenito
  • 973
  • 8
  • 30
0
votes
1 answer

NodeJS Lambda Region WAF IPSetID

I am new NodeJS and trying to alter this sample provided by AWS for reputation list updates however it is specific to CloudFront Global Region only. https://github.com/awslabs/aws-waf-sample/tree/master/waf-reputation-lists I have made the changes…
Sphinx's
  • 301
  • 1
  • 2
  • 7
0
votes
1 answer

Unzip string in JS

I am pulling down objects from s3. the objects are zipped, and I need to be able to unzip them and compare the contents with some strings. My problem is that I can't seem to get them properly unzipped. This is what I am seeing happen: s3 zipped ->…
bwighthunter
  • 137
  • 2
  • 12
0
votes
0 answers

S3GetSignedUrl not accepting an expiry time

I'm currently using a lambda to created signed links for my s3 bucket, and these links are supposed to have an expiry time of 24 hours. However, when I check the returned link - all the expiry times are set to 15 minutes. I've changed the CORS…
Ramzi C.
  • 1,691
  • 1
  • 14
  • 27
0
votes
1 answer

AWS Lambda done callback() function in Node

The microservice-http-endpoint starter function in Lambda contains the following code to end the function: const done = (err, res) => callback(null, { statusCode: err ? '400' : '200', body: err ? err.message : JSON.stringify(res), …
Julian
  • 8,808
  • 8
  • 51
  • 90
0
votes
1 answer

Programmatically generating temporary AWS API Keys using JS SDK

I'm using AWS Javascript SDK to create API Keys. I now wanna create API Keys for some short period of time say for 15 days and need to remove/disable the keys after that time. Is there any best way to do it programmatically preferably using anything…
Adil
  • 21,278
  • 7
  • 27
  • 54
0
votes
1 answer

Is an AWS user pool sync trigger possible?

Question I have a lambda function triggered when someone registers via federated identities that creates an entry in a dynamodb table. I want the same function (or similar) to occur when a user registers (I was thinking post confirm) via an…
0
votes
1 answer

How to get the count of element in a node saved in dynamo db using doClient.scan()

In doClient.scan() is there any way to set the count of elements stored in a particular node? As per the below example i need to add a new node "questionCount" to the below result which should contain the total number of reference_id in node…
guny
  • 197
  • 4
  • 19
0
votes
0 answers

Strategy for S3.getSignedUrl asynchronous call for large number of objects?

I need to display a large amount (a few thousand) images from S3 to a user. Since I'm using EC2 Instance credentials, I must call getSignedUrl asynchronously. Currently, I have 2 solutions, but they offer about the same performance. I create a new…
-1
votes
1 answer

How i can list all log in a group in lambdafunction aws

I try with @aws-sdk. I don't know what is function support to list logs.
1 2 3
34
35