Questions tagged [aws-sdk]

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

0
votes
0answers
13 views

How do I use a custom AWS SDK with nodejs?

I want to make a nodejs application that uses the AWS SDK. However, it only really needs to use S3, and I want the application to have a small filesize. AWS has a custom sdk builder which should make ...
0
votes
0answers
7 views

Getting temporary AWS credentials using Java SDK2

The AWS documentation seems still to refer to AWS Java SDK1 with regard to STS / assume role authentication. If I have: AWS Java SDK2 (v.2.5.49) role-arn external-id ..is there a way to create ...
0
votes
0answers
11 views

Uploading Image using aws

Wanted to set Credentials(accessKey,secretKey), Endpoint, region, val transferUtility: TransferUtility = TransferUtility.builder() .context(getApplicationContext()) ...
0
votes
0answers
9 views

Unable to print the Volume ID while i use to get the Volume ID from Cross account Lambda function

I have written a lambda function which is used to get the volume_id of an instance while i use the same function using cross_account lambda to get the volume id its not taking Say for example ...
0
votes
2answers
26 views

How do you update a DynamoDB table from PROVISIONED to PAY_PER_REQUEST in Node?

I have an existing DDB table which uses BillingMode: PROVISIONED and ProvisionedThroughput:{...}. I want to change it to use BillingMode: PAY_PER_REQUEST but when I do so I get the following error: ...
0
votes
0answers
13 views

AWS SES/WorkMail: Dynamically create mailboxes that forward to external addresses

I'm building a service where the end users can create organizations. Other users may then be added to the organization, and each organization may have a number of administrators. The service is built ...
-2
votes
1answer
31 views

Amazon SDK .net. Getting bucket website url

I am using amazon sdk for .net. With amazon S3 I am using static web hosting. I uploaded sources. I got endpoint to the static site like http://[bucketname].s3-website.eu-central-1.amazonaws.com How ...
0
votes
0answers
15 views

Android AWS TransferService not working in API level 26 and above

Tried to upload some image into the s3 bucket of AWS. Worked fine below the API level 26 but shows error Unable to execute HTTP request: timeout from API level 26 and above. Used sdk : ...
0
votes
0answers
14 views

Is possible or any way to create User Pool using .NET SDK/API?

Is possible or any way to create User Pool using .NET SDK/API? I want to perform following step using .NET SDK/API 1) Create User pool 2) Create App clients for user pool 3) Generate App client ...
0
votes
0answers
12 views

Can AWS Cognito cross region? Any workaround if not?

I've followed the instruction for uploading file to S3 in US region and succeed, with AWS SDK in Unity. Now, I want to do the same to HK (ap-east-1), but I found that there's no Cognito available in ...
0
votes
0answers
15 views

DynamoDB update multiple items conditionally

I want to update a DynamoDB item which has multiple fields but need to vary which fields are update on a case by case basis. For example one request may want to update 2 fields (firstName & ...
1
vote
1answer
36 views

Android DynamoDBMappingException: Expected S in value

I'm trying to map a json object from my dynamodb table using DynamoDbMapper and with the latest aws android sdk: com.amazonaws:aws-android-sdk-ddb-mapper:2.13.0, I'm seeing this exception: "...
0
votes
0answers
15 views

DynamoDB and AWSSDK for .NET - Scan for arbitrary class property

I have a class like this: [DynamoDBTable("some_table")] public class User { [DynamoDBHashKey] public string user_id { get; set; } [DynamoDBRangeKey] public string client_name { ...
0
votes
0answers
21 views

DynamoDB - Mapping Arbitrary C# Data Type With AWS SDK for .NET

I am attempting to persist a complex C# object into DynamoDB which looks like this. [DynamoDBTable("some_table")] public class User { [DynamoDBHashKey] public string user_id { get; ...
0
votes
0answers
17 views

AWS.MetadataService is not a constructor using angularJS

AWS.MetadataService is not a constructor, when I upload npm install aws-sdk in angularJS demo it's not normal use . windows angularJS var promise = new Promise((resolve, reject) => { var ...
3
votes
0answers
33 views

AWS Cognito permissions to access S3 on Android

I'm developing an Android app and keep having issues accessing S3 bucket "through" Cognito. I'm managing to connect to my cognito pool, with a username and a password of a specific user from my pool: ...
1
vote
0answers
38 views

GlacierSelectNotAvailable: Glacier select retrievals are currently not available, please try again later

When I restore glacier archive file in s3,I am facing with GlacierSelectNotAvailable error. I try to setting up the params of restoreObject but I keep getting that error. I use Nodejs AWS SDK. var ...
0
votes
1answer
21 views

Node: Unable to mock aws-sdk methods

I've tried many methods i've found on the internet about mocking aws-sdk services but none of them worked for me, i've even tried the module aws-sdk-mock but that doesn't work and i think that's ...
1
vote
1answer
65 views

Is it always necessary to check isTruncated in S3 ListObjects / ListObjectsV2 responses?

S3's ListObjects and ListObjectsV2 API responses both include an IsTruncated response element, which (according to the V1 API docs) Specifies whether (true) or not (false) all of the results were ...
0
votes
0answers
8 views

Which AWS C++ Api is used to perform seek operation on an object?

I am using AWS c++ SDK. Couldn't find any API to perform seek operation. I want to read a large file (can read from any offset).
0
votes
1answer
29 views

How to pass the image converted in bytes to request in detectdocumenttextresult and detectdocumenttextresponse using .Net?

Not able to pass the image which is converted to bytes to request. Due to which i am unable to use detectdocumenttextresult and detectdocumenttextresponse This is the java code i have tried to ...
0
votes
1answer
21 views

How to display only AMI id returned by boto3 instance.create_image()

Below is a boto3 code to create an ami from the given ec2 instance. How can I modify the output to extract only the value of the created AMI id ? import boto3 ec2 = boto3.resource('ec2') instance = ...
1
vote
2answers
40 views

AWS-Cognito: How to assign user roles in the user pool?

I have an user management system where I am using AWS-Cognito userPool for signup/sign-in process.I need to assign roles to these users. For example: Super admin, Referral and so on. The super ...
0
votes
0answers
17 views

AWSIoTDataError ForbiddenException

I am able to subscribe and listen to get/accepted and update/accepted events, but I am having strange behavior occurs sometimes when trying to update thing shadow: Error Domain=com.amazonaws....
0
votes
0answers
7 views

Web analytics set up for React App with AWS

I have a React JS app hosted on AWS EC2. I would like to use the AWS eco system to be able to add some web analytics to the app so I can track clicks, events, impressions etc. I heard I can use the ...
0
votes
0answers
12 views

Live Video Analysis with AWS Rekognition [closed]

I've followed this guide ( https://aws.amazon.com/blogs/machine-learning/easily-perform-facial-analysis-on-live-feeds-by-creating-a-serverless-video-analytics-environment-with-amazon-rekognition-video-...
0
votes
1answer
40 views

Mocking aws-sdk promises with aws-sdk-mock using jest

can you please see below code and tell me what is wrong with it? The code times out after 5 seconds, but I would expect it to run just fine, as per official description. Does anyone see what is ...
2
votes
2answers
42 views

Trying to generate a pdf table that will be stored on s3 and immediately retreived as an automated email attachment

Currently, my code is written to generate a pdf file containing a flight itinerary to a local drive. The system will automatically send an email with the itinerary attached(which is retrieved from ...
-1
votes
0answers
12 views

Data lost on elastik beanstalk uploaded using filezilla

I have a laravel project on elastik beanstalk . I accessed my project's file using filezilla and uploaded some files . After rebooting instance my all files are gone. What i changed later are missing....
0
votes
1answer
14 views

How to set the number of auto-reconnect attempts of AWSIoTManager

How can I set the number of auto-reconnect attempts and retry limits of the AWSIoTManager? here's the java example: aWSIotMqttManager = AWSIotMqttManager(..) aWSIotMqttManager....
0
votes
0answers
23 views

AWS Lambda function calling itself in .Net core

When we work on AWS Lambda functions with node.js, we have a facility to recursively call the function using recursion again and again. This will give us the ability to run long running tasks. See: ...
0
votes
0answers
9 views

When I upload a image in production does not working

When I use this code to upload a file(image ) to my S3 bucket works perfectly using localhost; however, when I publish my code somehow it is corrupting files and shows only a black screen. Am I need ...
0
votes
1answer
17 views

Reducing build size of spring boot application while using aws s3 sdk dependency

I am using a aws sdk in my spring boot application for file upload but it is making my build heavy whose size is near about 145mb to 150mb. I am just doing file upload on s3 bucket in my application. ...
0
votes
0answers
19 views

How to fix null invocation response of cffi request when putObject s3 function is used in handle

I'm making a counter that counts the number of time CFFI request is called in alexa skill. Im doing this by reading and updating a file in amazon s3 inside the handle where CFFI is handled. CFFI alone ...
0
votes
1answer
28 views

How secure is using something like `aws-sdk` (and process.env) in a react (web) app hosted on S3?

I'm still pretty new to doing full-stack development completely in AWS and have never really explored or attempted to exploit any of my front-end react, react-native projects. To put it bluntly, aws-...
0
votes
1answer
28 views

File Download from Amazon S3 via REST (Jax-RS)

I am trying to download a file from Amazon S3. I want the user to visit my app via a GET api. The app in turn gets the content from S3 and give it back to the user as a downloadable file. Note: I ...
0
votes
0answers
29 views

Hbase ExportSnapshot not working with aws temporary credentials

I am trying to export hbase table snapshot from on-prem (linux) box to s3 bucket. Following command is used : HADOOP_CLASSPATH=~/hadoop-aws-2.6.0-cdh5.4.0.jar:~/aws-java-sdk-sts-1.11.550.jar ~/...
2
votes
1answer
26 views

How to get past errors using putParameter with aws-sdk for nodejs in Lambda?

I'm trying to set a parameter using putParameter in the AWS SDK for JavaScript in Node.js. In particular, I'd like to take advantage of the "Advanced" Tier, with an Expiration policy and Tags if ...
0
votes
1answer
15 views

Android - Login google AWS Amplify - Template format error: YAML not well-formed

I try to login Google in Android with AWS amplify. But, after I do amplify push, I get error UPDATE_IN_PROGRESS authcognitoonoffinsure AWS::CloudFormation::Stack Tue May 14 2019 15:...
1
vote
1answer
17 views

Download sqlite file stored in s3 bucket through node

I have a sqlite file stored in S3 bucket. I want to download it in the my local machine or directly access it. How to do that?
1
vote
1answer
52 views

Could not load credentials from any providers in NodeJS

I am using AWSservices so I am using 'aws-sdk' package for nodeJS. As per their instructions on official website they ask to create a .aws folder in your current user profile and create credentials ...
0
votes
1answer
10 views

Retrieve list of (discovered) fields using Cloudwatch Logs SDK

On the documentation page for Supported logs and Discovered fields, we can see an overview of what fields Cloudwatch might discover. How can I detect what fields my logstream contains using the SDK? ...
0
votes
0answers
17 views

AWS SDK for JS: Authenticate with root email and password

I'm wondering if it's possible to authenticate an aws account with root credentials, i.e. no secret or access key, just username/email and password like a normal user would do when signing into the ...
0
votes
1answer
24 views

How to disable default publishing interval time i.e. every 3 seconds on AWS IoT

I am new to AWS IoT. I am using "AWSIotDevice" as super class of my virtual device. By using below, i am able to update shadow on AWS IoT. But my concern is, it is updating shadow every 3 seconds. I ...
0
votes
0answers
19 views

Etag decoding error when using awssdk s3 v2 with GCS and Minio gateway

I am currently migrating my Java codebase to use S3 client v2 instead of old v1 client. I'm interacting with the S3 API through a Minio gateway that sends/get objects to/from GCS (Google Cloud ...
0
votes
1answer
39 views

Unexpected Key 1-10 in params with translateText

So I'm just running a function to translate text with AWS Translate. Here is my params and the call to the function: const translate = new AWS.Translate({ apiVersion: '2017-07-01' }); const data = ...
-1
votes
1answer
40 views

AWS AppSync Error - AWSMobileClientStore.get(String) on null object reference

APPSYNC_ERROR: Attempt to invoke virtual method java.util.Map com.amazonaws.mobile.client.AWSMobileClientStore.get(java.lang.String[]) on a null object reference I am trying to inserting data ...
0
votes
1answer
13 views

Is it possible stream files to the client directly from S3 using AWS-SDK?

I'm trying to stream files to the client side without downloading the file via GetObject method and pipe this response back. Is it possible? When I do this: s3.getObject(params).on('httpHeaders', ...
0
votes
1answer
15 views

Missing parameter error even if already provided in AWS SQS PHP SDK

I'm getting this error even if I already provided a MessageGroupId parameter: AWS HTTP error: Client error: POST https://sqs.us-west-2.amazonaws.com/xxx/xxx.fifo resulted in a 400 Bad Request ...
0
votes
2answers
169 views

S3 Bucket AWS You can't grant public access because Block public access settings are turned on for this account

I want to make S3 bucket public to everyone but I get access denied when I do That and it Says You can't grant public access because Block public access settings are turned on for this account. To ...

http://mssss.yulina-kosm.ru