aws-sdk

Error in publishing an AWS Lambda function built in .NET Core

一曲冷凌霜 提交于 2019-12-12 15:03:34
问题 As of Dec 1, 2016, AWS Lambda now supports functions in C# that runs in the .NET Core 1.0 runtime. So I created the function using the VS AWS Lambda Template. I tried to publish the lambda function via the "Publish to AWS Lambda..." context menu in VS. So after configuring the function(selecting the S3 bucket, region, etc) in the dialog box, I click publish and at the end of the publish process, I am getting error: Error creating CloudFormation change set: User: arn:aws:iam::***:user/demo

Load Image from Stream/StreamReader to Image OR RawImage component

可紊 提交于 2019-12-12 12:47:51
问题 I'm using AWS Unity (v3.3.50.0): S3 SDK (AWSSDK.S3.3.3.5.4.unitypackage) downloaded from https://aws.amazon.com/mobile/sdk/. My Unity version is 5.5.1. I want to download an image placed on S3 bucket, bucket is configured and can be downloaded. And I see the string as data in response. But I cannot able to convert the returned StreamReader to UnityEngine.UI.Image.sprite OR UnityEngine.UI.RawImage.texture in S3 sample GetObject() function. private void GetObject() { ResultText.text = string

getting permission denied in amazon aws

一个人想着一个人 提交于 2019-12-12 11:32:35
问题 I am trying to connect to amazon s3 by Using the AWS credentials file for that i have done following things I have created credentials.ini file at .aws\credentials . It have valid AWSAccessKeyId and AWSSecretKey [default] AWSAccessKeyId=somekey AWSSecretKey=somesecretkey I am doing following to use key and list all object . $s3 = new Aws\S3\S3Client([ 'version' => 'latest', 'region' => 'us-west-2' ]); $result = $s3->listBuckets(); var_dump($result); and i am getting error Warning: parse_ini

Access denied to SQS via AWS SDK

萝らか妹 提交于 2019-12-12 09:28:34
问题 I'm currently working on a website developed with Symfony2 and I need to send messages in an Amazon SQS. In order to do that I added to my composer.json : "aws/aws-sdk-php": "2.4.*" Then when I try to create a queue or list queues I've got a 403 error saying: Access to the resource https://sqs.us-west-2.amazonaws.com/ is denied. EDIT: added the full error message AWS Error Code: AccessDenied, Status Code: 403, AWS Request ID: 2fe34c11-7af8-5445-a768-070159a0953e, AWS Error Type: client, AWS

Best way to send data from Dynamodb to Amazon Elasticsearch

萝らか妹 提交于 2019-12-12 09:22:44
问题 I was wondering which is the best way to send data from dynamoDB to elasticsearch. AWS sdk js. https://github.com/Stockflare/lambda-dynamo-to-elasticsearch/blob/master/index.js DynamoDB logstash plugin: https://github.com/awslabs/logstash-input-dynamodb 回答1: Follow this AWS blog. They describe in detail how it is and should be done. https://aws.amazon.com/blogs/compute/indexing-amazon-dynamodb-content-with-amazon-elasticsearch-service-using-aws-lambda/ edit I'm assuming you use AWS

AWS CloudFormation for Lambda and SNS Topic

北城以北 提交于 2019-12-12 06:48:28
问题 I have a cloud formation script which I am using to create a Lambda and SNS Topic. Here is the yml script for SNS Topic and Lambda creation, SampleSNSTopic: Type: AWS::SNS::Topic Properties: DisplayName: sampleTopic TopicName: sampleTopic SampleLambdaFunction: Type: AWS::Lambda::Function DependsOn: SampleSNSTopic Properties: Handler: index.handler Description: Sample Lambda function FunctionName: TestFunction Role: !Ref SomeRole Code: ZipFile: !Sub | var AWS = require("aws-sdk"); exports

Error while configuring AWS SDK in Eclipse

流过昼夜 提交于 2019-12-12 05:37:16
问题 I am trying to install AWS SDK for my eclipse IDE. But when I install and restart it is giving me this pop-up with bunch of errors. Internal Error when running initial setup wizard Internal Error when scanning legacy AWS account configuration Internal Error when starting the AWS toolkit plugin And also on closing this, if I go to a particular AWS related tab from Preferences it gives me error. Currently displayed page contains invalid values. 回答1: http://docs.aws.amazon.com/cli/latest

How to get the path param value in java AWS Lambda function

情到浓时终转凉″ 提交于 2019-12-12 04:32:38
问题 URL: /test/{userName} In AWS Lambda function , How can I get the {username} path parameter value. I am calling lambda function through AWS API gaetway . 回答1: If you are using AWS integration type: Use a mapping template to send $input.params('username') property in the request body to your Lambda function. If you are using AWS_PROXY integration type: You can access the path parameters via the "pathParameters" property of the incoming event. 来源: https://stackoverflow.com/questions/41762462/how

Issue in Unused AWS Reserved Instances

佐手、 提交于 2019-12-12 04:25:59
问题 In checking unutilized reserved instances, I retrieve those using python script from Github called ec2-check-reserved-instances. It contains: running_instances = {} for reservation in reservations: for instance in reservation.instances: if instance.state != "running": sys.stderr.write("Disqualifying instance %s: not running\n" % ( instance.id ) ) elif instance.spot_instance_request_id: sys.stderr.write("Disqualifying instance %s: spot\n" % ( instance.id ) ) else: **if instance.vpc_id:** print

Swift DynamoDB Mapper Sending Empty Values

主宰稳场 提交于 2019-12-12 04:24:11
问题 I'm trying to use DynamoDB using the iOS Swift SDK. I'm using Cognito with Facebook as an external identity provider. Cognito is working fine - I've tested user sync and it works OK, so I believe I have the authentication set up. Here's how I'm setting up the SDK (I have the actual values of my identity pool in my code): let credentialsProvider = AWSCognitoCredentialsProvider(regionType:.USEast1, identityPoolId:"<my-identity-pool-id>", identityProviderManager: FacebookProvider()) let