aws-sdk

AWS S3 Presigned POST to URL query string for curl

为君一笑 提交于 2019-12-25 16:55:55
问题 trying to generate a pre-signed query string to POST to an S3 bucket using the AWS SDK for PHP. Getting the following error: The request signature we calculated does not match the signature you provided. Here's the php file to generate the URL, adapted from here. <?php require('./aws/aws-autoloader.php'); $client = new \Aws\S3\S3Client([ 'version' => 'latest', 'region' => 'us-east-1', 'credentials' => [ 'key' => '[KEY]', 'secret' => '[SECRET]', ], ]); $bucket = '[mybucket]'; // Set some

Cannot send email via aws-ses from https request?

梦想的初衷 提交于 2019-12-25 10:05:09
问题 I am using the AWS SDK for PHP to send email via SES. I have a PHP file that i use to send email. When i use the AWS Command Line Interface (AWS CLI) to run this file I can send email. However, when i try it from the browser I get a http 500 error. Please can someone advise? I am getting the following trace: The 'autoload.php' file is not located in the /html folder. How can I allow this to be opened? This file has read access opened for the public. Fatal error: Uncaught Aws\Exception

A WebException with status TrustFailure was thrown. AmazonS3 .net 3.5 Version 3 invoking from sharepoint 2010

删除回忆录丶 提交于 2019-12-25 09:06:05
问题 Currently I am working in POC with CRUD operations using AmazonS3 Sdk for .net 3.5 version 3. I am trying to retrieve the Region Endpoint(Location) of the specific bucket name using secret key and Access Key and bucket name( has Location: EU (Frankfurt) (eu-central-1)). in order to establish connection with AmazonS3 and perform CRUD operations So I get the A WebException with status TrustFailure was thrown when I tried to get the Region Endpoint from share point(web page I create my own page

Add/remove one element from a string set in DynamoDBItem

大憨熊 提交于 2019-12-25 08:49:47
问题 I am using DynamoDB for a social app based on events, like-unlike attending-not_attending. I am interested in finding out how can add or remove an item from a StringSet attribute in DynamoDB Item. Here is the objects structure "userId": { "S": "69" }, "fName": { "S": "mfName" }, "lName": { "S": "mlName" }, "picture": { "S": "https://s3-us-west-2.amazonaws.com/users/mfName_1000049788.jpg" }, "events": { "M": { "1502199358": { "M": { "created": { "S": "1502199358.443022" }, "eventId": { "S": "

Error while using DynamoDB AWS SDK [No Mapping for Hash Key] because of naming convention

旧街凉风 提交于 2019-12-25 07:46:48
问题 While using AWS JAva SDK, for defining DynamoDBHashKey we @DynamoDBHashKey annotation. Strangely if i use annotation as below @DynamoDBHashKey String Abc instead of @DynamoDBHashKey String abc this gives me an error, no mapping for HASH key [junit] at com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperTableModel.hashKey(DynamoDBMapperTableModel.java:119) [junit] at com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperTableModel$Builder.build(DynamoDBMapperTableModel.java:449

Search users Amazon Cognito with ListUsers API or iOS SDK

别来无恙 提交于 2019-12-25 04:13:23
问题 I am creating an iOS application in Swift and I cannot find a way to search or get a list of Cognito Users with API. Per Amazon Documentation, it says to use the ListUsers API; however, it does not provide an endpoint to make the request and it is rather difficult to authenticate REST API requests with AWS so is there anyway to do this via iOS SDK? These are the parameters I would like to include in my Request. [ "AttributesToGet": ["username" ], "Filter": "username ^= \"micheal\"", "Limit":

S3Stream is getting closed before processing the entire payload

别说谁变了你拦得住时间么 提交于 2019-12-25 01:54:12
问题 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.core.JsonParser; import com.amazonaws.services.s3.model.S3Object; import static com.fasterxml.jackson.core.JsonToken; import com.google.common.util.concurrent.Futures; import com.google.common.util.concurrent.ListenableFuture; public boolean sync(Job job) throws IOException //validating the json

How to check ACL of the each object in stored in S3

ぐ巨炮叔叔 提交于 2019-12-25 01:45:00
问题 How to check Access Control List (ACL) of the each object in stored in S3 bucket of Amazon Web Services via AWS SDK for .Net? It is not only for .Net SDK, it is applicable for all AWS SDK like Node and Java SDK too. In the below code snippet, I could not find the Access level property of each object. If the access level permission is known already, I can inform user early before accessing objects for read/write/download operations. static void Main(string[] args) { string bucketName =

How to trigger response for Custom Intent?

回眸只為那壹抹淺笑 提交于 2019-12-25 01:37:05
问题 I created an Alexa 'riddle' skill recently and I'm having trouble with the utterances. I created an intent "GetRiddleIntent" then associated a few utterances e.g. "riddle me this" with that intent. I did not include any intent slots. When I test my skill, I have to use the invocation name in order to bring back results from lambda. The built in intents work upon invocation e.g. "LaunchRequest" & "Amazon HelpRequest" but none of the sample utterances for my custom intent return any results, I

AWS Rekognition Error - InvalidparameterException

不羁的心 提交于 2019-12-25 00:35:21
问题 const AWS = require('aws-sdk'); AWS.config.loadFromPath('./config.json'); const rekognition = new AWS.Rekognition({apiVersion: '2016-06-27'}); const constants = require('./constants'); const s3BucketName = constants.s3BucketName; const s3BucketKeyName = constants.s3FacebookBucketKey; const params = { Image: { S3Object: { Bucket: "mastekinnoations3learning", Name: "1527119837382460.jpeg" } } }; rekognition.detectFaces(params, function(err, data) { if (err) console.log(err, err.stack); // an