aws-sdk

ListCollections is not listing correct collections in Android App - AWS Rekognition

白昼怎懂夜的黑 提交于 2019-12-24 21:12:25
问题 Ok so I have been stuck here for about more than a week now and I know its some dumb mistake. Just can't figure it out. I am working on a project that is available of two platforms, Android & iOS. Its sort of a facial recognition app. When I try to create/access collections from iOS application and python script, they both access the same collection from my AWS account. But when I try to access from Android application, it creates/accesses it's own collections. The collections created by

AWS SDK in java - How to get activities from worker when multple execution on going for a state machine

送分小仙女□ 提交于 2019-12-24 20:22:58
问题 AWS Step Function My problem is to how to sendTaskSuccess or sendTaskFailuer to Activity which are running under the state machine in AWS . My Actual intent is to Notify the specific activities which belongs to particular State machine execution. I successfully send notification to all waiting activities by activityARN. But my actual need is to send notification to specific activity which belong to particular state machine execution . Example . StateMachine - SM1 There two execution on going

AWS S3 File upload using Javascript

前提是你 提交于 2019-12-24 19:42:06
问题 I'm trying to upload an image to aws s3 using javascript. But when i attempt to upload it, I'm getting the following error. Failed to load https://demoapp.s3-us-west-2.amazonaws.com/IMG_2484.JPG: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:63342' is therefore not allowed access. Code : <input id="file-chooser" type="file"/> <button id="upload-button">Upload</button> <p

How to only allow AWS IoT subscriptions to topics under Cognito user id (sub)?

ぃ、小莉子 提交于 2019-12-24 19:13:37
问题 I want my backend to be able to directly send messages to authenticated users. Which means I need to limit the users to only subscribe on topics under their own identifiers. Ideally, to my currently limited understanding, I would have a policy that has the user sub as a variable: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "iot:Connect", "iot:Publish", "iot:Receive", "iot:GetThingShadow", "iot:UpdateThingShadow", "iot:DeleteThingShadow" ], "Resource": "*" }, {

SageMaker NodeJS's SDK is not locking the API Version

纵然是瞬间 提交于 2019-12-24 14:48:38
问题 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 here's the code to create the model: await sagemaker.createModel({ ExecutionRoleArn: 'xxxxxx', ModelName: sageMakerConfigId, Containers: [{ Image: ecrUrl }] }).promise() This code runs just fine locally with aws-sdk on 2.418.0 . However, when this code is deployed to Lambda, it doesn't work due to

Running an ECS Task on a Schedule With .NET

蹲街弑〆低调 提交于 2019-12-24 10:59:53
问题 I am currently using the IAmazonECS.RunTaskAsync API to run a task on ECS immediately. Now, I would like to postpone it to some point in the future. According to the documentation, it should be possible, but I haven't found a way to do it. 回答1: You can use CloudWatchEvents from Amazon.CloudWatchEvents namespace for that. var putRuleRequest = new PutRuleRequest { Name = "test", RoleArn = "IAM_ROLE_ARN", ScheduleExpression = "rate(5 minutes)", State = RuleState.ENABLED, }; var putRuleResponse =

Dynamo DB : UpdateItemSpec : Multiple Update Expression - Not Working

泄露秘密 提交于 2019-12-24 08:57:55
问题 I am trying to add/update a record(row) in the table with multiple update expression as - UpdateItemSpec updateItemSpec = new UpdateItemSpec() .withPrimaryKey("phoneNumber",phoneNumber) .withReturnValues(ReturnValue.ALL_NEW) .withUpdateExpression("set #tid = :tidValue") .withUpdateExpression("set #ttl = if_not_exists(#ttl,:ttlValue)") .withNameMap(new NameMap().with("#ttl","ttl").with("#tid", "tid")) .withValueMap(new ValueMap().with(":ttlValue",ttl).with(":tidValue", tid)); table.updateItem

Can I use WebWorkers in AWS Lambda (node 6.10)

爷,独闯天下 提交于 2019-12-24 08:09:40
问题 I've got a very simple node module that I want in AWS lambda, and its importing 'Natural' for some text processing. This line throws the error: var n = require('natural'); The error is this: { "errorMessage": "/var/task/node_modules/webworker-threads/build/Release/WebWorkerThreads.node: invalid ELF header", "errorType": "Error", "stackTrace": [ "Module.load (module.js:487:32)", "tryModuleLoad (module.js:446:12)", "Function.Module._load (module.js:438:3)", "Module.require (module.js:497:17)",

Amazon Cognito confirmPassword fails with (TypeError: Converting circular structure to JSON)

邮差的信 提交于 2019-12-24 07:36:09
问题 I have a two step forgot password process. I'm rendering two forms using React. The first form takes an email address and upon submit, successfully executes my resetPassword() function. The function successfully sends the user a security code via email. This part works fine. Then, the next form is rendered which takes in the security code and a password (password and confirmPassword - they must be the same, obviously). Then, upon submit of this form, it executes the confirmPassword() function

aws s3 > is “aws s3 cp” command implemented with multithreads?

∥☆過路亽.° 提交于 2019-12-24 05:46:56
问题 I am newbie in using aws s3 client. I tried to use "aws s3 cp" command to download batch of files from s3 to local file system, it is pretty fast. But I then tried to only read all the contents of the batch of files in a single thread loop by using the amazon java sdk API, it is suprisingly several times slower then the given "aws s3 cp" command :< Anyone know what is the reason? I doubted that "aws s3 cp" is multi-threaded 回答1: If you looked at the source of transferconfig.py , it indicates