aws-sdk

How can Akka streams be materialized continually?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 14:36:11
问题 I am using Akka Streams in Scala to poll from an AWS SQS queue using the AWS Java SDK. I created an ActorPublisher which dequeues messages on a two second interval: class SQSSubscriber(name: String) extends ActorPublisher[Message] { implicit val materializer = ActorMaterializer() val schedule = context.system.scheduler.schedule(0 seconds, 2 seconds, self, "dequeue") val client = new AmazonSQSClient() client.setRegion(RegionUtils.getRegion("us-east-1")) val url = client.getQueueUrl(name)

Simple DynamoDB request failing with ResourceNotFoundException

徘徊边缘 提交于 2019-12-21 07:54:49
问题 I'm just getting up and running with DynamoDB using the Java SDK (v1.8). I've created a very simple table using the AWS console. My table has a primary hash key, which is a String (no range). I've put a single item into the table with 4 other attribute values (all Strings). I'm making a simple Java request for that item in the table, but it's failing with ResourceNotFoundException . I'm absolutely positive that the table name I'm supplying is correct, as is the name of the primary hash key

AWS push notification service integration error

元气小坏坏 提交于 2019-12-21 07:00:00
问题 I am trying to integrate Amazon Push Notifications to my iPhone app. I did follow the tutorial provided here correctly. I am getting this error when creating the Platform EndPoint. (Seems a permission issue with identity pool???) CognitoIdentityCredentials is not authorized to perform: SNS:CreatePlatformEndpoint Full message: Error: Error Domain=com.amazonaws.AWSSNSErrorDomain Code=4 "The operation couldn’t be completed. (com.amazonaws.AWSSNSErrorDomain error 4.)" UserInfo=0x165dcef0 {Type

How to call AWS API Gateway Endpoint with Cognito Id (+configuration)?

懵懂的女人 提交于 2019-12-21 04:10:17
问题 I want to call an AWS API Gateway Endpoint that is protected with AWS_IAM using the generated JavaScript API SDK . I have a Cognito UserPool and a Cognito Identity Pool . Both properly synced via ClientId . I use this code to Sign in and get the Cognito Identity AWS.config.region = 'us-east-1'; // Region AWS.config.credentials = new AWS.CognitoIdentityCredentials({ IdentityPoolId: 'us-east-1:XXXXXXXXXXXXXXXXXXXXXXXX' // your identity pool id here }); AWSCognito.config.region = 'us-east-1';

How to get the region of the current user from boto?

独自空忆成欢 提交于 2019-12-21 03:13:13
问题 Problem: I'm trying to get the region of the authenticated user from boto3. Use case: I'm working on adding cache to https://github.com/pmazurek/aws-fuzzy-finder. I would prefer to cache the result on per-region basis. This package uses boto to get user authentication data (keys and the region). The problem is the region is never passed explicitly by the user, its being taken from one of the many murky places that boto reads so I don't really have a way of getting it. I have tried searching

The role defined for the function cannot be assumed by Lambda

爷,独闯天下 提交于 2019-12-21 03:11:02
问题 I'm getting the error "The role defined for the function cannot be assumed by Lambda" when I'm trying to create a lambda function with create-function command. aws lambda create-function --region us-west-2 --function-name HelloPython --zip-file fileb://hello_python.zip --role arn:aws:iam::my-acc-account-id:role/default --handler hello_python.my_handler --runtime python2.7 --timeout 15 --memory-size 512 回答1: I got the error "The role defined for the function cannot be assumed by Lambda"

How to get/compute CommitDigest when committing a transaction in AWS QLDB?

可紊 提交于 2019-12-20 13:17:35
问题 I've been reading through the docs trying to figure out how to commit a transaction in QLDB, and in order to do so, a CommitDigest is required, and the docs describe it as: Specifies the commit digest for the transaction to commit. For every active transaction, the commit digest must be passed. QLDB validates CommitDigest and rejects the commit with an error if the digest computed on the client does not match the digest computed by QLDB. So CommitDigest must be computed, but I'm not quite

S3 Policy to Allow Lambda

久未见 提交于 2019-12-20 12:21:56
问题 I have the following policy on an S3 bucket created with the AWS policy generator to allow a lambda, running with a specific role, access to the files in the bucket. However, when I execute the Lambda, I get 403 permission denied: "errorMessage": "Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: <requestId>)", "errorType": "com.amazonaws.services.s3.model.AmazonS3Exception", The Policy on the S3 bucket: { "Version": "2012-10-17", "Id": "Policy<number>

ruby was-sdk v2 : Seahorse::Client::NetworkingError Exception: SSL_connect

戏子无情 提交于 2019-12-20 06:14:07
问题 I downloaded the ca-bundle.crt from https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt and installed it on my OS X Yosemite (10.10 w Ruby 2.2.1) local computer at /usr/local/etc/openssl/certs/ca-bundle.crt, as the was-sdk v2 is not anymore shipped with an SSL CA bundle However, executing : @s3 = Aws::S3::Client.new(credentials: Aws.config[:credentials] ) puts @s3.list_buckets() I get an error *** Seahorse::Client::NetworkingError Exception: SSL_connect returned=1 errno=0

Is it possible to use AMAZON LEX to build a chatbot which connects with database and Web service stored on client side?

一个人想着一个人 提交于 2019-12-20 05:46:44
问题 Our organization wants to develop a "LOST & FOUND System Application" using chatbot integrated in a website. Whenever the user starts the conversation with the chatbot, the chatbot should ask the details of lost item or item found and it should store the details in database. How can we do it ? And can we use our own web-service because organization doesn't want to keep the database in Amazon's Server. 回答1: As someone who just implemented this very same situation (with a lot of help from