aws-sdk

The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256

孤人 提交于 2019-12-12 04:12:51
问题 I get an error AWS::S3::Errors::InvalidRequest The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256. when I try upload file to S3 bucket in new Frankfurt region. All works properly with US Standard region. Script: backup_file = '/media/db-backup_for_dev/2014-10-23_02-00-07/slave_dump.sql.gz' s3 = AWS::S3.new( access_key_id: AMAZONS3['access_key_id'], secret_access_key: AMAZONS3['secret_access_key'] ) s3_bucket = s3.buckets['test-frankfurt'] # Folder and

Lambda function issue in AWS iOS Sdk

南楼画角 提交于 2019-12-12 04:07:06
问题 I'm new to deal with AWS web services, i'm working with open-identity sending DeveloperAuthProviderName and Token in login dictionary of AWSCognitoCredentialsProvider class and then in a viecontroller i'm invoking a lambda funtion and its giving me error below. I have used CognitoSyncDemo App and also tried with importing all frameworks through pod but result is same. Please help me out of this. AWSiOSSDKv2 [Error] AWSCredentialsProvider.m line:435 | __73-[AWSCognitoCredentialsProvider

Retrieving image url with specific access privileges using AWS Mobile SDK for Android

 ̄綄美尐妖づ 提交于 2019-12-12 03:45:37
问题 I would like to retrieve an image URL with non-public access using the AWS Android SDK. I will be displaying the image via the URL myself, but I'm not sure how to go about getting permissions via the secret access key. I would like to keep these images private, so making them public is not an option for me. How would I go about doing this? 回答1: There is no way to create a URL to an image with access control built into the URL per se. Because if the URL alone is what has the access built into

Awaiting AWS EC2 instance stop or start completion

故事扮演 提交于 2019-12-12 03:34:25
问题 I would like to send a request through the AWS EC2 API to stop (or start) an instance and then get a callback when the machine is in the stopped state (or running ). I'm using the AWS SDK for .NET, and I've tried the ec2Client.StopInstancesAsync method. It returns as soon as the request has posted, so it does not make an asynchronous callback after the state transition. What I'm aiming to do overall is to stop an instance, change the InstanceType once the machine is stopped , then start the

How to resolve missing artifact error when using Eclipse AWS plugin?

穿精又带淫゛_ 提交于 2019-12-12 02:37:39
问题 I am using the aws Java plugin for Eclipse. I didn't have any issues during the installation process but after I used the plugin to create a sample DynamoDB project, I got this error Missing artifact com.amazonaws:aws-java-sdk-cl....watchmetris.jar:1.11.123(click for 156 more...). clicking didn't do anything. I thought the error was due to the fact that I didn't install that jar during the installation process - I only installed "AWS Toolkit for Eclipse". I went back into Eclipse and

Rails download of AWS S3 file using presigned_post - fatal exception

天涯浪子 提交于 2019-12-12 02:14:59
问题 I set up my Rails app to upload files directly to AWS S3 using this tutorial and it works great. Now I'm working on the direct download piece using the same approach in this SO post. When I try and trigger the download it hangs and then finally returns the following error: fatal at /user/doc_uploads/download exception reentered The puts in the code below show what appears to be an infinite loop on the server. I simply don't know enough about how this code is supposed to work to figure this

Piping from request.js to s3.upload results in a zero byte file

泪湿孤枕 提交于 2019-12-11 19:34:13
问题 I'm trying to pipe a file from request.js straight to s3. The code below is the closest I've managed to figure out. It runs, but the file that ends up on s3 is zero bytes. What am I getting wrong? var request = require('request'); var AWS = require('aws-sdk'); var s3 = new AWS.S3(); request('https://placekitten.com/g/2000/2000') .on('response', function(response) { response.on('data', function(data) { // this is getting called console.log(data.length); }); s3.upload({ Body: response, Bucket:

How to use pagination on dynamoDB

北慕城南 提交于 2019-12-11 18:44:00
问题 How can you make a paginated request (limit, offset, and sort_by) using dynamoDB? On mysql you can: SELECT... LIMIT 10 OFFSET 1 order by created_date ASC I'm trying this using nodejs, and in this case created_date isn't the primary key, can I query using sort key created_date ? This is my users table { "user_id": "asa2311", "created_date": "2019/01/18 15:05:59", "status": "A", "rab_item_id": "0", "order_id": "1241241", "description": "testajabroo", "id": "e3f46600-1af7-11e9-ac22-8d3a3e79a693"

Instantiating AmazonS3Client in C# using the access key, secret key and RegionEndPoint constructor is suddenly failing with DirectoryNotFoundException

。_饼干妹妹 提交于 2019-12-11 17:54:16
问题 My app has been creating AmazonS3Client instances for a long time using this aws c# sdk constructor. From the docs this does not seem to be the preferred way of doing it, but again, this has been working for a long time and I do not see any remarks on this constructor being deprecated. Instantiating the object the way I am doing, is suddenly throwing a System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\myUser\.aws\credentials'.' Seems it is trying to find a aws

S3 Multiple Files Download Java SDK

青春壹個敷衍的年華 提交于 2019-12-11 17:13:35
问题 We have a feature in which end users can download thousands of photos (e.g. 4-5k) in a collection in a ZIP format. We are using S3 for storing the photos. So an user clicks the "Download" button then a ZIP file starts downloading. The backend code is like below (Just code snippet) ZipOutputStream zos = new ZipOutputStream(response.getOutputStream()); for (Gallery photo : gallery) { S3ObjectInputStream file = null; try { filePath = title + "_" + id + "_"+ photo.getId() + ".jpg"; file =