aws-sdk Questions

17

Solved

In a Node.js project I am attempting to get data back from S3. When I use getSignedURL, everything works: aws.getSignedUrl('getObject', params, function(err, url){ console.log(url); }); My...
Gomel asked 29/4, 2016 at 15:39

9

I've been using the aws-amplify library with ionic and was wondering how I would check if a user is logged in? I'm coming from a firebase background so this is quite different. This is so that I ca...
Seamaid asked 11/2, 2018 at 15:17

14

Solved

I'm trying to create an S3 bucket and immediately assign a lambda notification event to it. Here's the node test script I wrote: const aws = require('aws-sdk'); const uuidv4 = require('uuid/v4'...
Psalterium asked 10/11, 2017 at 4:9

11

Solved

im setting up a dynamodb locally to test with my Node app. To set it up i just plain out copied the code from here and adjusted it for my needs. This is the code: var AWS = require("aws-sdk"); va...

17

Solved

I would like to check if a key exists in a given bucket using Java. I looked at the API but there aren't any methods that are useful. I tried to use getObject but it threw an exception.
Gym asked 28/11, 2011 at 22:4

5

I'm using the aws-sdk to upload files to s3. I'm configuring my credentials with aws.config.update({ accessKeyId: aws.config.credentials.accessKeyId, secretAccessKey: aws.config.credentials.secr...
Purloin asked 20/5, 2020 at 10:52

3

I'm trying to use email templates to personalize the email which I send by passing the data to already created templates through a JSON string. Even though I'm able to send a raw email by attaching...
Steakhouse asked 8/11, 2018 at 11:43

11

I am trying to send an email using Amazon SES in AWS Lambda function, For this i am facing the following error. AccessDenied: User arn:aws:sts::XXXXX:assumed-role/lambda_basic_execution/awslambd...
Archaize asked 22/1, 2016 at 14:42

2

Solved

I have try this below code and it's working fine. However I need to store these signup details within user pool (additionally I want add some custom attributes as well). But I didn't find a proper ...
Haematogenesis asked 29/1, 2018 at 14:37

9

Solved

Hello I am interested in retrieving the Task ID from within inside a running container which lives inside of a EC2 host machine. AWS ECS documentation states there is an environment variable ECS_C...
Knobby asked 16/2, 2018 at 3:52

2

Looking at the AWS sdk for Javascript, it appears we can only create stacks but i'm looking of a way to deploy a stack. How would I do that with the provided sdk; this is what they currently have: ...
Gypsophila asked 13/9, 2018 at 0:58

3

Solved

Is it possible to extend the visibility time out of a message that is in flight. See: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html. Section: Changing ...
Armbruster asked 13/7, 2016 at 15:11

10

Solved

In AWS API Gateway, I have a GET method that invokes a lambda function. When I test the method in the API Gateway dashboard, the lambda function executes successfully but API Gateway is not mappin...
Zoology asked 6/12, 2015 at 16:59

4

I have the following .elasticbeanstalk/config.yml branch-defaults: default: environment: MyDev-env deploy: artifact: target/App-Sprint9-SNAPSHOT-bin.zip environment-defaults: MyDev-env: branc...
Endways asked 20/9, 2019 at 3:39

6

Solved

When I use the aws-sdk module Node.js 18.x: const aws = require("aws-sdk"); exports.handler = async (event) => { console.log('Hello!'); // some code }; I got this error: { "e...
Roxi asked 22/12, 2022 at 8:37

5

Solved

Using the AWS SDK for JavaScript, I want to use a default profile that assumes the a role. This works perfectly with the AWS CLI. Using node.js with the SDK does not assume the role, but only uses ...

2

I am trying to upload buffer data from an image into S3. It gets uploaded fine. But when I try to download/view the image in S3, it throws an error. I have tried the following - The image is avai...
Yoko asked 17/9, 2019 at 5:51

4

Solved

Can anyone explain how to use GetItemInput type when calling DocumentClient.get ? If I pass in an object of any type get works but if I try and strongly type the params object I get this error: V...

3

Solved

I want to send a PDF file in an attachment using the sendRawEmail(Node: aws-sdk) function. I have tried lots of ways. The email is send successfully, but the PDF goes plain. How can my code be corr...

4

I'm trying to find the image URLs for Amazon products based solely on their ASIN. For example: This link is for a product with ASIN B07NVVQL66 in the USA If you click it you will see an image of...
Platinumblond asked 27/9, 2019 at 23:48

2

I have been debugging, configuring and you name it the last couple of hours and i can't seem to figure out why this is happening. I am trying to invoke a lambda function which is just retrieving b...
Tragedian asked 11/10, 2018 at 13:36

3

Solved

I have a bunch of images in Amazon S3 that I need to physically rotate. I currently do this by downloading the image to my server, rotating it using GD and overwriting it back to S3. This process ...
Senseless asked 4/12, 2015 at 18:53

4

I have the following policy on an S3 bucket created with the AWS policy generator to allow a lambda, running with a specific role, access to the files in the bucket. However, when I execute the Lam...
Turnbull asked 24/7, 2017 at 13:54

3

I configured .env file to have AWS credentials, it doesn't work. in the docs, it is written the config will automatically be loaded from .env file. but it doesn't. I tried to add the following ...
Tuckerbag asked 8/8, 2018 at 9:46

11

Solved

I am using NodeJs to upload files to AWS S3. I want the client to be able to download the files securely. So I am trying to generate signed URLs, that expire after one usage. My code looks like thi...
Vagrancy asked 5/10, 2018 at 14:6

© 2022 - 2025 — McMap. All rights reserved.