Questions tagged [aws-sdk]

The software development kit for use with the Amazon Web Services API.

The AWS SDK provides a language/platform-specific interface for API access to AWS services. For CLI access, see or .

Usage Guidance

  • Use the language/platform you're working on. For example, if you're using the Go SDK, tag your question with both . If the tag exists for a specific language, like , or — use it as well.
  • Do not use this tag for AWS CLI questions. Use instead.
  • Do not use this tag for AWS Tools for PowerShell questions. Use instead.

SDKs

An SDK is available in the following languages/platforms:

Links

AWS SDK Code Samples/Examples

6213 questions
48
votes
4 answers

display images fetched from s3

I want to fetch images from s3 and display them on my HTML page. Angular HTML file:
Angular Controller…
Gaurav Gupta
  • 1,929
  • 4
  • 21
  • 40
47
votes
3 answers

Difference between AWS SDK DynamoDB client and DocumentClient?

I want to know the difference between the AWS SDK DynamoDB client and the DynamoDB DocumentClient? In which use case should we use the DynamoDB client over the DocumentClient? const dynamoClient = new AWS.DynamoDB.DocumentClient(); vs const…
47
votes
4 answers

TRIM_HORIZON vs LATEST

I can't find in the formal documentation of AWS Kinesis any explicit reference between TRIM_HORIZON and the checkpoint, and also any reference between LATEST and the checkpoint. Can you confirm my theory: TRIM_HORIZON - In case the application-name…
Ida Amit
  • 1,411
  • 2
  • 13
  • 27
47
votes
8 answers

Aws S3 Filter by Tags. Search by tags

We have our bucket with new Aws SDK API on AWS S3. We uploaded and tagged lots of files and folders with tags. How can we filter on key-value tag, or only one of them? I'd like to find all the objects with key = "temp", or key = "temp" and value =…
alagaesia
  • 1,469
  • 2
  • 14
  • 20
47
votes
8 answers

How do I promisify the AWS JavaScript SDK?

I want to use the aws-sdk in JavaScript using promises. Instead of the default callback style: dynamodb.getItem(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); //…
Martin Kretz
  • 1,523
  • 2
  • 13
  • 20
46
votes
11 answers

S3 Bucket Lambda Event: Unable to validate the following destination configurations

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'); aws.config.update({ accessKeyId: 'key', …
Scotty Waggoner
  • 3,083
  • 2
  • 26
  • 40
46
votes
8 answers

Spring boot startup error for AWS application : There is not EC2 meta data available

I am getting the below error when I am trying to run a Spring boot-AWS application locally : There is not EC2 meta data available, because the application is not running in the EC2 environment. Region detection is only possible if the application is…
souvikc
  • 991
  • 1
  • 10
  • 25
46
votes
6 answers

How to use “IN” statement in FilterExpression using array - dynamodb

Checked AWS document but did not find any working example. Here is my attempt var params = { TableName: "User", IndexName:"a-b-index", KeyConditionExpression: "Country = :country and #s = :status", …
Nirmal Goswami
  • 814
  • 1
  • 7
  • 18
46
votes
3 answers

Access denied to SQS via AWS SDK

I'm currently working on a website developed with Symfony2 and I need to send messages in an Amazon SQS. In order to do that I added to my composer.json: "aws/aws-sdk-php": "2.4.*" Then when I try to create a queue or list queues I've got a 403…
SupaCoco
  • 1,615
  • 2
  • 16
  • 23
45
votes
8 answers

How do I access the group for a Cognito User account?

In AWS Cognito, you can add a user to a group (after first creating a group). A user may belong to one or more groups. With using the JavaScript SDK (https://github.com/aws/amazon-cognito-identity-js), is there a way to read the assigned Groups?…
user1322092
  • 4,020
  • 7
  • 35
  • 52
45
votes
3 answers

Retrieve S3 file as Object instead of downloading to absolute system path

I just started learning and using S3, read the docs. Actually I didn't find anything to fetch the file into an object instead of downloading it from S3? if this could be possible, or I am missing something? Actually I want to avoid additional IO…
Bruce_Wayne
  • 1,564
  • 3
  • 18
  • 41
44
votes
4 answers

using profile that assume role in aws-sdk (AWS JavaScript SDK)

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 credentials to the AWS account that the access key…
44
votes
6 answers

AWS : Invalid identity pool configuration. Check assigned IAM roles for this pool

I have created one user pool & identity pool. I have used javascript sdk. I am able to signup, send confirmation code & confirm user successfully with javascript sdk. But when i try to sign in user with authenticate method & try to get credentials…
44
votes
6 answers

Pre-signed url for multiple files?

I have written an implementation for generating pre-signed URLS for a bucket on aws-s3. It works fine, for getting single files/objects. How would I go about this for generating pre-signed URLS for entire directories? Lets put it this way, on my s3…
nkl
  • 528
  • 1
  • 4
  • 9
44
votes
10 answers

Access Denied while sending email from AWS SES in Lambda function

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/awslambda_XXXX' is not authorized to performses:SendEmail' on…
RakeshKalwa
  • 671
  • 2
  • 6
  • 16