aws-lambda

AWS Lambda Jar unable to zip after adding selenium dependencies in pom

痞子三分冷 提交于 2020-02-01 03:19:19
问题 This is a weird error. After adding the selenium dependencies to the pom of my maven project and upload it to a lambda, it says it is unable to unzip the file. However after removing the dependencies, the lambda is able to unzip the file just fine (however it comes up with a class not found afterwards). I have tried removing the dependencies one by one but each one triggers the error. Any ideas on how to solve this? Class not found error org/openqa/selenium/WebDriver: java.lang

How to invoke an AWS Lambda function in Swift

佐手、 提交于 2020-01-31 09:58:27
问题 I can't find any documentation or examples on how to invoke a Lambda function in Swift but I've tried to extrapolate from the documentation using Objective-C and I'm still getting errors: "Error in myFunction: ValidationException: Supplied AttributeValue is empty, must contain exactly one of the supported datatypes" It appears that I'm not passing in the parameters to the function correctly when I invoke the lambda function from swift because the script tries to write to DynamoDB but one of

How to send GraphQL mutation from one server to another?

丶灬走出姿态 提交于 2020-01-31 08:35:27
问题 I would like to save some Slack messages to a GraphQL backend. I can use the Slack API and what they call "Slack App Commands" so everytime a message is send to my Slack channel, Slack will automatically send a HTTP POST request to my server with the new message as data. I was thinking using an AWS lambda function to forward this post request to my GraphQL server endpoint (I am using GraphCool). I am pretty new to GraphQL, I've used Apollo to create mutations from the browser. Now I need to

How to send GraphQL mutation from one server to another?

本小妞迷上赌 提交于 2020-01-31 08:34:24
问题 I would like to save some Slack messages to a GraphQL backend. I can use the Slack API and what they call "Slack App Commands" so everytime a message is send to my Slack channel, Slack will automatically send a HTTP POST request to my server with the new message as data. I was thinking using an AWS lambda function to forward this post request to my GraphQL server endpoint (I am using GraphCool). I am pretty new to GraphQL, I've used Apollo to create mutations from the browser. Now I need to

Can I trigger same AWS lambda from multiple SQS?

南笙酒味 提交于 2020-01-30 12:12:12
问题 I want to trigger a lambda function from multiple SQS queues. Most of the processing the lambda will do is same, just one small step will be based on the table name. I don't want to maintain two separate lambda for that. What's the pros and cons of having same/multiple lambda? 回答1: Yes there's no reason you can't configure it that way. It should work fine. 来源: https://stackoverflow.com/questions/59397753/can-i-trigger-same-aws-lambda-from-multiple-sqs

Can I trigger same AWS lambda from multiple SQS?

匆匆过客 提交于 2020-01-30 12:11:08
问题 I want to trigger a lambda function from multiple SQS queues. Most of the processing the lambda will do is same, just one small step will be based on the table name. I don't want to maintain two separate lambda for that. What's the pros and cons of having same/multiple lambda? 回答1: Yes there's no reason you can't configure it that way. It should work fine. 来源: https://stackoverflow.com/questions/59397753/can-i-trigger-same-aws-lambda-from-multiple-sqs

SQS Message Delay Not Working As Expected

烂漫一生 提交于 2020-01-30 11:27:07
问题 I'm trying send individual SQS messages with a delay. Using https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-send-message-with-timer.html to test message delays, I'm not seeing any delay. If I set a delay on the queue, that delay is honoured, however not for individual messages. I'm doing the following (all from the AWS console): Open the SQS console and right click on my test queue - verify that there the delay value for the queue is 0. Right click on the test

Lambda Throttling Behaviour with SNS

末鹿安然 提交于 2020-01-30 06:36:07
问题 While reading the SNS FAQ part concerning the retrying behaviour with Lambda functions, I've encountered the following statement: Q: What happens to Amazon SNS messages if the subscribing endpoint is not available? Lambda: If Lambda is not available , SNS will retry 2 times at 1 seconds apart, then 10 times exponentially backing off from 1 seconds to 20 minutes and finally 38 times every 20 minutes for a total 50 attempts over more than 13 hours before the message is discarded from SNS. As

Why can't I see the role list in AWS Lambda Advanced Function Details dialog?

﹥>﹥吖頭↗ 提交于 2020-01-26 04:15:46
问题 I am creating a simple AWS Lambda Function in C# - in fact nothing more than their template. I right click on a project, select Publish to AWS Lambda , fill out the function name, assembly, type names and all that, then go Next to the Advanced Function Details dialog. In this dialog, I am asked to provide a name. But the drop-down is empty and there is no way to type it in. I have plenty of roles defined in IAM and have attached them to other lambda functions (that I created in aws console).

Python: Install Dependencies into directory

喜欢而已 提交于 2020-01-26 03:34:05
问题 I have a Python project that I want to get worked in Amazon aws Lambda. So i need to creat a deployment package. I tried it like explained on this page: http://docs.aws.amazon.com/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html But here my problem: Some Dependencies I can install, some are not installable. If I want to install requests into a directory, It installs. If I want to install json into a directory I get the following error massage: Directory '/Users/iTom