Questions tagged [aws-sdk]

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

0
votes
0answers
38 views

How to download and process large S3 file?

I have a large JSON file (i.e 100MB to 3GB) in S3. How to process this? Today, I am using s3client.getObjectContent() to get the input stream and trying to process. As I stream it, I am passing the ...
0
votes
0answers
20 views

Not all bytes were read from the S3ObjectInputStream, aborting HTTP connection WARNING

I am trying to read a very big file (almost 1 GB) from S3. However the getobject fails to read the file with the error WARNING: Not all bytes were read from the S3ObjectInputStream, aborting HTTP ...
1
vote
0answers
32 views

building html table using array containing csv data in javascript

i'm getting csv data from an S3 object and converting it to a string using the code shown below, then i'm dumping the string into an array arr thinking i can build a html table using and tags which ...
0
votes
0answers
24 views

How to build a Request AWS .net

I want to use CostExplorer to get the usage report to know information about consumption of services. To do that I am creating a AmazonCostExplorerClient object and using the GetCostAndUsage method. ...
0
votes
2answers
13 views

To mock AWS SES with Sinon

I'm trying to mock SES with Sinon, but facing below error. Tried using aws-sdk-mock, but it's not working. Error: Trying to stub property 'SES' of undefined at throwOnFalsyObject (D:\TestService\...
0
votes
1answer
25 views

ASK CLI fails to load AWS_ACCESS_KEY_ID variable

I'm trying to use the Ask CLI to deploy an Alexa skill, but whenever I run ask deploy, I get this error: [Error]: Cannot find the environment variable: AWS_ACCESS_KEY_ID I'm 100% sure the ...
0
votes
0answers
8 views

Customize or override default eTag in AWS S3

Does AWS S3 SDK allow us to customize eTag with some randomization. I 'm using AWS S3 SDK uploadDirectory in Transfer Manager. Some files have identical contents but with different names. When I try ...
0
votes
0answers
15 views

On Android, AWSMobileClient.showSignIn callback is not called when user cancels

I'm using Amazon's included Sign In UI, which loads and displays prefectly, but when the user hits the backpress and returns to the calling activity, the callback is not called either for success or ...
1
vote
0answers
34 views

Problem with AWS Cognito function not being called within VPC

I am trying to create an identity pool user from a lambda function, but every time I try to use cognitoidentity.getOpenIdTokenForDeveloperIdentity the function times out. When it was outside of a VPC ...
0
votes
0answers
9 views

AmazonCloudWatchAsyncClient Thread Configuration

I am using following two libraries to publish spring boot metrics to aws cloud watch. org.springframework.cloud:spring-cloud-starter-aws:2.0.1.RELEASE io.micrometer:micrometer-registry-...
1
vote
1answer
23 views

uploading an image to S3 via javascript AWS sdk results in '[object object]' string

By following this tutorial, I'm trying to upload an image from my ionic application to an amazon s3 bucket using the following code: uploadFile(filePath) { console.log('uploading: ', filePath); ...
0
votes
0answers
24 views

Waiting for stack-create-complete in Java awssdk

It is possible to poll for the status of the stack from the command line as follows: wait stack-create-complete [--stack-name <value>] This his documented in the AWS Docs: wait and stack-...
0
votes
2answers
29 views

How to create CloudWatch logs trigger for AWS Lambda function using aws SDK?

I according to https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CloudWatchLogs.html#putSubscriptionFilter-property nodejs const AWS = require('aws-sdk'); AWS.config = new AWS.Config ({ ...
0
votes
0answers
7 views

Passing Message Attributes in AWS SNS with .Net for Push Notification

Im trying to pass some message attribute values to a push notification message, but at the receivers end I don't get the specified message attributes in the response. Below is the code. Dictionary<...
0
votes
2answers
34 views

How to process with AWS-cognito NEW_PASSWORD_REQUIRED Challenge

When I use the below code: $result = $this->client->adminInitiateAuth([ 'AuthFlow' => 'ADMIN_NO_SRP_AUTH', 'ClientId' => $this->client_id, ...
0
votes
0answers
11 views

Getting error while generating presigned url for SSE-C

I have created a customer key for AWS S3 Server side encryption using customer key (SSE-C). I am able to upload the object using the key. But when I generate a presigned URL using AWS Java SDK the ...
1
vote
0answers
21 views

Ruby: how to tag existing AWS VPC

I need to tag existing AWS VPC with custom tag for some purpose. I found out how to tag VPC when creating it, but nothing about tagging existing VPC. Objects that I have at disposal in existing code ...
1
vote
2answers
34 views

SageMaker NodeJS's SDK is not locking the API Version

I am running some code in AWS Lambda that dynamically creates SageMaker models. I am locking Sagemaker's API version like so: const sagemaker = new AWS.SageMaker({apiVersion: '2017-07-24'}); And ...
0
votes
0answers
10 views

Letterboxing video - Use white color instead of black for bars

I'm using Amazon Media Convert for processing and preparing video files for adaptive streaming. When converting video file from 16:9 to 4:3 aspect ratio, amazon media convert is applying ...
0
votes
1answer
27 views

Can't send e-mail using AWS SES: didn't I configure it properly?

I'm trying to send e-mails from a NodeJS application running on an EC2 machine, but I'm getting an access denied error that I wasn't expecting. I followed this documentation and now my scenario is (...
1
vote
1answer
17 views

Unable to create Kinesis Client in Lambda function

I have created a Lambda function which is triggered by a DynamoDB stream. I am trying to process Dynamodb events and put them into a Kinesis stream after some transformation. The Lambda has full ...
0
votes
1answer
16 views

Creating ALB trigger for Lambda using CLI

Form the AWS management console, ALB can be used as trigger for Lambda function. However, I cannot find the same thing using AWS CLI. LINK In CLI, only Kinesis, SQS and DynamoDB options are ...
0
votes
0answers
10 views

convert csv data into html table in Nodejs

i'm in a place where i manage to get data from oracle DB and convert the data object into csv buffer and upload/put it to a csv file in AWS S3 Bucket.say 'output.csv'. Now, i'm trying to read this csv ...
0
votes
0answers
24 views

Using a Cognito authoriser / Bearer with AWS API Gateway JS SDK

I'm trying to use the generated JS SDK to access my API from AWS API Gateway. In this case I'm using a method called 'configurationGet'. I use a Cognito Authorizer with the token source set to '...
0
votes
1answer
20 views

How to set aws-sdk credentials using Elastic Beanstalk?

I'm running an express app in Elastic Beanstalk and in one route I'm using the aws-sdk to publish a notification to sns. This works when running locally, but in the Elastic Beanstalk environment how ...
0
votes
0answers
19 views

AWS SNS using PHP SDK - uncaught exception

Using AWS SDK for PHP v.3.90.3 I'm trying to directly send SMSs without subscribing topics. After having Googled a lot without proper results, and after having read quite all the topics here for AWS ...
1
vote
1answer
34 views

How to config Oracle cloud certificate?

I try to connect to oracle cloud through Aws-java-sdk-s3-1.11.116. When i code a main method. every thing works well. But when i put the method to tomcat. it will wrong. I don't know why. see code. ...
1
vote
0answers
27 views

Tagging an EC2 using http REST API

I have an EC2 with no python nor awscli installed and for various reason I'm unable to install python (and thus awscli) there. I still need to be able to add tags to that EC2 by running a bash script ...
0
votes
0answers
47 views

S3Stream is getting closed before processing the entire payload

I am processing the bulk json payload from s3. code as follows: import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson....
1
vote
2answers
47 views

How to dynamically create an inline Lambda with AWS SDK for JavaScript?

I need to create a simple Lambda programmatically from another Lambda. This is possible with CloudFormation: MyLambda: Type: AWS::Lambda::Function Properties: FunctionName: my-lambda ...
1
vote
1answer
28 views

Do multiple DynamoDb queries using Lambda function

I need to do multiple queries on dynamodb from my dotnet lamba function (Like GetItem and Query using partition and sort keys). Which one is the best way? Having subsequent queries in a single lambda....
0
votes
1answer
37 views

Printing s3 bucket upload object key with lambda with Ruby?

The following is a test example supplied by aws lambda for s3 events: { "Records": [ { "eventVersion": "2.0", "eventSource": "aws:s3", "awsRegion": "us-east-2", "...
1
vote
0answers
10 views

AWS Glue and Cross Region Access

I have a few questions about AWS Glue that I was hoping someone could answer for me. So the scenario is we have an AWS Account set up in the us-east-1 region and we use AWS EMR along with Glue as the ...
0
votes
0answers
17 views

S3 Java SDK - Put Object requires region

I have a client with the following configuration: client = AmazonS3ClientBuilder.standard() .withCredentials(new DefaultAWSCredentialsProviderChain()) .enableForceGlobalBucketAccess() ...
0
votes
0answers
42 views

How to execute an exe file from AWS lambda

I have written a lambda function that executes another exe file named abc.exe. Now I have created a zip of lambda function and uploaded it to aws. I am not sure where to put my "abc.exe" I tried ...
0
votes
0answers
13 views

AWS Java SDK : Initialize a client using profile name

With Python API I can authorize by profile name and use the SDK like this: boto3.setup_default_session(profile_name='MyProfileName') glue = boto3.client('glue', region_name='eu-west-1') I can't ...
0
votes
0answers
13 views

AWS Toolkit for Visual Studio 2017 : Install Failed

Similar with this question but I cannot find the folder which need to delete, but it seems it is different. Please somebody help me as I am not able to install AWS Toolkit on my Laptop. I am trying ...
0
votes
0answers
29 views

Basic setup using Symfony 4 messenger, php-enqueue, AWS SQS, AWS SNS

The goal is to be able to send messages using AWS SQS+SNS. This has been a struggle for a few days and I don't know how to make it work. Symfony 4.2 has a new component, messenger that I wanted to ...
1
vote
1answer
40 views

dynamodb get item typescript hell

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 an error ...
2
votes
1answer
15 views

DynamoDB - putItem - Map with nested data types (NodeJS, aws-sdk)

All - I am working on a specific business requirement and with the lack of info on Google I thought I would stop here for some info: I am basically ingesting a CSV, converting it to a JSON Object and ...
0
votes
1answer
16 views

DynamoDB get item but only if an attribute in that item is false

So I have a an item I only want to get if its not set to be deleted. Is it more efficient to sort it away in Node after I have fetched it? I cannot find any conditions in the documentation in the ...
0
votes
0answers
16 views

How can huge REST API response be handled in AWS component?

The requirement is to fire a REST API, get the response (reasonably large) and save the response to S3. What is the recommended approach to get this done? (using Lamda/Step Function/EC2 app?)
3
votes
0answers
46 views

Aws Sdk 2.12.3 TransferService Usage

We were using version 2.4.2 of Amazon SDK for file upload and downloads. Recently we updated it to 2.12.3. In older versions, any upload or download task used to start TransferService internally in ...
0
votes
0answers
24 views

AWS S3 getSignedUrl() with SHA256 verification

I'm trying to create a signedUrl to let a user upload a specific file in an S3 bucket. The 2 restrictions are known ahead of time: The file's name (S3 key) The file's SHA256 signature Whatever the ...
0
votes
0answers
26 views

Specifying the file that triggers to event in Lambda code

issue: I am unable to specify the file that triggers the event. The goal is to add a watermark to uploaded video files. I have successfully done this within elastic transcoder by creating a pipeline ...
0
votes
2answers
24 views

Should I create and reuse AmazonSimpleEmailServiceClient as a singleton?

The SES Docs for .NET show sending email using AmazonSimpleEmailServiceClient initialized with a using statement: using (var client = new AmazonSimpleEmailServiceClient(RegionEndpoint.USWest2)) { ...
0
votes
0answers
15 views

IAM Role ARN Rekognition create stream Processor

I am trying to use AWS's face recognition from streaming Kinesis, but got stuck on create stream processor step with error: err AccessDeniedException: status code: 400, request id: d871329b-4553-...
0
votes
1answer
44 views

Parsing aws-clite-gateway-api response issue

Here is my JSON response. I want to parse the below JSON and get Site_id from header.location. I am able to get Status, Message values but not location value. It is actually response header, I am ...
0
votes
0answers
19 views

Proxy with Amazon AWS-SDK for SQS Java

Trying to use Amazon SQS on a corporate environment where they have Windows OS servers but they have a force http proxy pool. Using standard java code I can get through the http proxy fine using JVM ...
0
votes
0answers
16 views

AWS IOT using C embedded SDK can't load certificate from string

I'm trying to use aws-iot from esp8266-rtos-sdk. My problem is the only way to load pRootCALocation, pDeviceCertLocation and pDevicePrivateKeyLocation is from file but I want to load from staticaly ...

http://mssss.yulina-kosm.ru