aws-lambda

AWS Lambda: How to extract a tgz file in a S3 bucket and put it in another S3 bucket

坚强是说给别人听的谎言 提交于 2020-05-13 07:06:38
问题 I have an S3 bucket named "Source". Many '.tgz' files are being pushed into that bucket in real-time. I wrote an Java code for extracting the '.tgz' file and pushing it into "Destination" bucket. I pushed my code as Lambda function. I got the '.tgz' file as InputStream in my Java code. How to extract it in Lambda ? I'm not able to create a file in Lambda, it throws "FileNotFound(Permission Denied)" in JAVA. AmazonS3 s3Client = new AmazonS3Client(); S3Object s3Object = s3Client.getObject(new

GPU based algorithm on AWS Lambda

雨燕双飞 提交于 2020-05-12 11:39:07
问题 I have a function which perform some mathematical operations and need a 16gb GPU system, But this function will not be triggered always and rest of time my system will not be in use. I came to know about AWS Lambda. Can I run GPU based algorithm on Lambda?? So that whenever I need GPU, I will get the system on cloud. I need a little description about it. 回答1: You can't specify the runtime environment for AWS Lambda functions, so no, you can't require the presence of a GPU (in fact the

AWS Lambda Node.js 10.x Runtime error with selenium-webdriver

一曲冷凌霜 提交于 2020-05-11 17:08:11
问题 A few days back we received a notification regarding 'Lambda operational notification' to update our Node.js 8.10 runtime to Node.js 10.x runtime. In response to this notification, we installed Node.js version v10.16.3 in our development system and tested our existing code. We found the code was running fine in our development system, but when we tested this same code in AWS Lambda with Node.js 10.x runtime we get this following error: 2019-10-28T12:03:31.771Z 8e2472b4-a838-4ede-bc70

AWS Lambda Node.js 10.x Runtime error with selenium-webdriver

。_饼干妹妹 提交于 2020-05-11 17:06:17
问题 A few days back we received a notification regarding 'Lambda operational notification' to update our Node.js 8.10 runtime to Node.js 10.x runtime. In response to this notification, we installed Node.js version v10.16.3 in our development system and tested our existing code. We found the code was running fine in our development system, but when we tested this same code in AWS Lambda with Node.js 10.x runtime we get this following error: 2019-10-28T12:03:31.771Z 8e2472b4-a838-4ede-bc70

AWS Lambda Node.js 10.x Runtime error with selenium-webdriver

柔情痞子 提交于 2020-05-11 17:04:47
问题 A few days back we received a notification regarding 'Lambda operational notification' to update our Node.js 8.10 runtime to Node.js 10.x runtime. In response to this notification, we installed Node.js version v10.16.3 in our development system and tested our existing code. We found the code was running fine in our development system, but when we tested this same code in AWS Lambda with Node.js 10.x runtime we get this following error: 2019-10-28T12:03:31.771Z 8e2472b4-a838-4ede-bc70

AWS Python Lambda Function - Upload File to S3

巧了我就是萌 提交于 2020-05-11 05:33:45
问题 I have an AWS Lambda function written in Python 2.7 in which I want to: 1) Grab an .xls file form an HTTP address. 2) Store it in a temp location. 3) Store the file in an S3 bucket. My code is as follows: from __future__ import print_function import urllib import datetime import boto3 from botocore.client import Config def lambda_handler(event, context): """Make a variable containing the date format based on YYYYYMMDD""" cur_dt = datetime.datetime.today().strftime('%Y%m%d') """Make a variable

AWS Cognito: Best practice to handle same user (with same email address) signing in from different identity providers (Google, Facebook)

假如想象 提交于 2020-05-10 06:22:38
问题 When signing in a user with the same email address through the Google and Facebook identity providers, AWS Cognito creates multiple entries in the user pool, one entry per identity provider used: I have used the example code provided in this tutorial to set up AWS Cognito: The Complete Guide to User Authentication with the Amplify Framework How can I create just one user instead of multiple users? Is it possible to have AWS Cognito automatically combine (federate) the entries from multiple

AWS: specify Lambda version for Cognito trigger

大城市里の小女人 提交于 2020-05-02 04:05:14
问题 I have a Cognito User Pool and corresponding a Identity pool. I want to call a specific version of my Lambda function on Post authentication or some other trigger like that. I don't see an option to specify a version code in the Console although the examples all have a version number. http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html { "version": number, "triggerSource": "string", "region": AWSRegion, "userPoolId":

Unable to install cvxpy into virtualenv for AWS lambda

泪湿孤枕 提交于 2020-04-30 10:21:34
问题 I am trying to run the cvxpy package in an AWS lambda function. This package isn't in the SDK, so I've read that I'll have to compile the dependencies into a zip, and then upload the zip into the lambda function. I've done some research and tried out the links below, but when I try to pip install cvxpy I get error messages - I'm on a Windows box, but I know that AWS Lambda runs on Linux. Appreciate the help! http://i-systems.github.io/HSE545/machine%20learning%20all/cvxpy_install/CVXPY

Unable to install cvxpy into virtualenv for AWS lambda

做~自己de王妃 提交于 2020-04-30 10:21:21
问题 I am trying to run the cvxpy package in an AWS lambda function. This package isn't in the SDK, so I've read that I'll have to compile the dependencies into a zip, and then upload the zip into the lambda function. I've done some research and tried out the links below, but when I try to pip install cvxpy I get error messages - I'm on a Windows box, but I know that AWS Lambda runs on Linux. Appreciate the help! http://i-systems.github.io/HSE545/machine%20learning%20all/cvxpy_install/CVXPY