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

s3 select : How to get column names of parquet files?

I am using s3 select to read first 10 rows of a large parquet file stored in S3 bucket. I am able to get the first 10 rows in csv format but it comes without any header. It contains only rows without any column names. Is there any way to get headers…
CodeHunter
  • 2,017
  • 2
  • 21
  • 47
2
votes
0 answers

Why can't I just run a single instance from a template?

Using the aws cli, it works perfectly: aws ec2 run-instances --launch-template LaunchTemplateName=mytempname,Version=24 Using the aws sdk: var params = { LaunchTemplate: { LaunchTemplateName: 'mytempname', Version: '24' …
Alexis
  • 2,136
  • 2
  • 19
  • 47
2
votes
2 answers

Sharing an AWS Cognito / Amplify Auth Configuration between two projects?

I have AWS Amplify within a project that uses Auth only. I want to transfer the Auth configuration settings to a new project. Can we just copy aws-exports to the new project or do we need to do anything else? Basically the goal is to share the…
Ole
  • 41,793
  • 59
  • 191
  • 359
2
votes
1 answer

upload file to s3 using nodejs

I have coded a function which upload file to s3 which using aws-sdk, but I've got a problem. When I replace Body by Body: "test" then the function will execute successfully and I can see the content test in s3. But I want to upload a document such…
Khanh Pham
  • 2,848
  • 2
  • 28
  • 36
2
votes
1 answer

How to deploy an image classification model in AWS SageMaker after done training job and created end-point

I have done training a model with the build in image classification model to classify two phone models by raw images with lst file.(Ex:Iphone6splus and Iphone7plus) So the num of classes is 2, num of datasets I use is 1600 images, 800 for each…
WHGG
  • 33
  • 4
2
votes
0 answers

Amplify "Incorrect username or password"

I'm building an app on iOS and Android (both native language) and I'm using AWS Amplify for the auth part. Everything was working fine until I decided to recreate from scratch all my AWS instances on a different server region using Terraform and…
YoanGJ
  • 479
  • 5
  • 25
2
votes
0 answers

How to handle AWS SQS ReceiptHandleIsInvalid error when deleting message?

I am receiving the following error from a Lambda that is pulling and deleting messages from a SQS standard queue using the aws-sdk: { "errorType": "ReceiptHandleIsInvalid", "errorMessage": "The receipt handle \"some-long-string\" is not…
KA01
  • 4,191
  • 3
  • 19
  • 26
2
votes
2 answers

How to Achieve Performance of AWS CLI Sync Command in AWS SDK

The aws s3 sync command in the CLI can download a large collection of files very quickly, and I can not achieve the same performance with the AWS Go SDK. I have millions of files in the bucket so this is critical to me. I need to use the list pages…
quintin
  • 161
  • 13
2
votes
1 answer

How to download a file from S3 bucket directly to the browser using AWS SDK (Ruby on Rails)?

I am using Aws S3 resource object of AWS SDK in my Rails code to download a file from my S3 bucket this way: s3 = Aws::S3::Resource.new(region: 'us-west-2') obj = s3.bucket('mybucket').object( my_report_file_name) obj.get(response_target:…
m.beginner
  • 389
  • 2
  • 18
2
votes
0 answers

How to track progress of AWS s3 upload when done using presigned_post_url()?

I am uploading files to amazon s3 storage using Python SDK using Presigned POST. It uploads but how do I track the progress. In terms of Boto, I am not getting any good articles to proceed.
Varun Singh
  • 444
  • 6
  • 21
2
votes
3 answers

Use the aws client to copy s3 files from a single directory only (non recursively)

Consider an aws bucket/key structure along these lines myBucket/dir1/file1 myBucket/dir1/file2 myBucket/dir1/dir2/dir2file1 myBucket/dir1/dir2/dir2file2 When using: aws s3 cp --recursive s3://myBucket/dir1/ . Then we will copy down…
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
2
votes
2 answers

Chaining/Nesting promises

I'm having nightmare trying to chain aws js sdk. Currently I have the following (omitted any parameters to remove chaff, the calls work in isolation so its safe to assume they are correct) function deploy() { return sts.assumeRole().promise() …
Tom Riley
  • 1,701
  • 2
  • 21
  • 43
2
votes
2 answers

How to use AmazonSQSExtendedClient to recieve data from an SQSEvent

I've got two AWS lambda functions connected together via an SQS queue. They've been working correctly for a while, but recently the size of the payload has increased and now it's broken the 256Kb limit. After reading Question 43738341 like to use…
Stormcloud
  • 2,065
  • 2
  • 21
  • 41
2
votes
3 answers

Create a user on AWS Workspaces with API

When creating a Workspace, I can create one or more users providing email and other information. I am trying to do the same using AWS API or boto3 in python. None of WorkSpaces and DirectoryService in boto3 provide a way to create a user in AWS…
SMUsamaShah
  • 7,677
  • 22
  • 88
  • 131
2
votes
2 answers

Multi region wordpress deployment on cloud

I have been looking for many blog and site to deploy the Wordpress website multi-region on cloud platform. I have go through GCP App Engine and Kubernetes but didn't find much. How to create a database connection from another region and how to…
Harsh Manvar
  • 27,020
  • 6
  • 48
  • 102
1 2 3
99
100