aws-lambda

Set up S3 Bucket level Events using AWS CloudFormation

被刻印的时光 ゝ 提交于 2019-12-14 04:04:16
问题 I am trying to get AWS CloudFormation to create a template that will allow me to attach an event to an existing S3 Bucket that will trigger a Lambda Function whenever a new file is put into a specific directory within the bucket. I am using the following YAML as a base for the CloudFormation template but cannot get it working. --- AWSTemplateFormatVersion: '2010-09-09' Resources: SETRULE: Type: AWS::S3::Bucket Properties: BucketName: bucket-name NotificationConfiguration: LambdaConfigurations

AWS Lambda function written with .Net Core 2.0 cannot load libdl

ぃ、小莉子 提交于 2019-12-14 03:59:07
问题 I am developing c# lambda functions using Visual Studio 2017, the AWS Toolkit for VS2017 and the AWS Lambda Project .Net Core 2.0 template. I have successfully developed and deployed a few functions. I developed a function that uses Aspose.Net version 18.5. The function executes as expected when tested on my Windows machine. However, when deployed on AWS Lambda, I receive this stack trace: One or more errors occurred. (The type initializer for 'Gdip' threw an exception.): AggregateException

Python/AWS Lambda Function: How to view /tmp storage?

走远了吗. 提交于 2019-12-14 03:56:19
问题 Lambda functions have access to disk space in their own /tmp directories. My question is, where can I visually view the /tmp directory? I’m attempting to download the files into the /tmp directory to read them, and write a new file to it as well. I actually want see the files I’m working with are getting stored properly in /tmp during execution. Thank you 回答1: You can't 'view' the /tmp directory after the lambda execution has ended. Lambda works in distributed architecture and after the

twilio Lambda backend aws

假如想象 提交于 2019-12-14 03:54:33
问题 Is it possible to use Lambda as a backend for Twilio? I can call Twilio fro Lambda, but I need to get information from the caller, such as "press 1". I could make a server, but can I invoke Lambda functions? (I know we can't invoke Lambda). Here's an example of what I'd like to do. exports.handler = function(event, context) { resp.say('bienvenue ', { voice:'alice', language:'fr-FR' }); resp.say('helloo', { voice:'woman', language:'fr-FR' }); .gather({ method:"GET", finishOnKey:'*', action :

Unable to execute Lambda in Async mode via API Gateway POST request

扶醉桌前 提交于 2019-12-14 03:53:47
问题 Why currently there no way to execute AWS Lambda in asynchronous mode via Gateway API without involving intermediary Lambda just for calling invoke() method? Even if i add integration like this: r = client.put_integration( restApiId=rest_api_id, resourceId=resource_id, httpMethod='POST', type='AWS', integrationHttpMethod='POST', uri=uri, requestParameters={ 'integration.request.header.X-Amz-Invocation-Type': "'Event'", 'integration.request.header.Invocation-Type': "'Event'" } ) It still

How can I make an HTTP request from an HTTPS website?

拈花ヽ惹草 提交于 2019-12-14 03:19:41
问题 I have a website which is on HTTPS, and I want to make a GET request to an HTTP port. At the moment when I try I get these errors: cannot load ${url} due to access control checks. this page was not allowed to display insecure content from ${http-url} I have thought about putting the request in an AWS lambda function and calling the labmda function because that will give me an HTTPS URL? Is this possible. Even so, I want to know what the easiest way of doing it is, as I don't know much about

Processing AWS Lambda messages in Batches

陌路散爱 提交于 2019-12-14 01:13:21
问题 I am wondering something, and I really can't find information about it. Maybe it is not the way to go but, I would just like to know. It is about Lambda working in batches. I know I can set up Lambda to consume batch messages. In my Lambda function I iterate each message, and if one fails, Lambda exits. And the cycle starts again. I am wondering about slightly different approach Let's assume I have three messages: A , B and C . I also take them in batches. Now if the message B fails (e.g. API

Switch from unauth to developer authenticated cognito user - AWS iOS SDK

╄→尐↘猪︶ㄣ 提交于 2019-12-13 20:57:29
问题 Overall Problem: I have a problem using a developer authenticated identity with my front end (iOS). I know my backend produces the correct token and identityID but my refresh method never gets called. I've also looked at the sample but I get slightly confused with everything going on. Flow Explanation: Currently I have a login screen that has a login button. The user presses the login button, then my api class takes the credentials, encrypts the password and stores it in keychain (commented

How to feed the audio stream output of the AWS Kinesis video stream to AWS Transcribe service?

冷暖自知 提交于 2019-12-13 20:50:50
问题 How to feed the audio stream output of the AWS Kinesis video stream (KVS) to AWS Transcribe service and get realtime audio to text conversion? I ingested audio via amazon connect to KVS(Kinesis video stream), My concern is, which format kinesis video stream (KVS) deliver (I hope its Payload format) and will Transcribe service able to support it or any way I can convert to Transcribe service understandable. 回答1: For me, I tinkered with the AWS CLI, two stage process although the output from

My SQL 5.6 - how to prevent Reads on rows selected by a previous SQL statement PLUS any other row which share a duplicate value in a given column

杀马特。学长 韩版系。学妹 提交于 2019-12-13 20:30:37
问题 I've got a very specifc and quite complex need to prevent Reads coming from massively concurrent (same second, sometimes same milli-second) requests coming from distinct servers (to be precise, they're AWS lambdas) on a table called Hobby_ideas_articles. Set-up: mySQL 5.6 on aws aurora serverless MySQL (autocommit is off by default) I read of course a lot of posts about row locks and think they might be part of the solution but I think I'm not in the basic select...for update case. My table