aws-lambda

AWS Lambda invoke function (js sdk): timeout resets to default

一世执手 提交于 2020-12-03 07:51:55
问题 I am running a Meteor (Node 4.4.7) application that performs long operations on AWS Lambda. I invoke the lambda function from my code and wait for the response before proceeding to the next invocation. I set the timeout to 300000ms as described in a former question (both on Lambda and in the AWS.Lambda object in my code). My problem is that sometimes the AWS.Lambda timeout value is reset to the default value of 120000ms. As my Lambda function takes more time to execute (but still less than

AWS Lambda invoke function (js sdk): timeout resets to default

你。 提交于 2020-12-03 07:51:03
问题 I am running a Meteor (Node 4.4.7) application that performs long operations on AWS Lambda. I invoke the lambda function from my code and wait for the response before proceeding to the next invocation. I set the timeout to 300000ms as described in a former question (both on Lambda and in the AWS.Lambda object in my code). My problem is that sometimes the AWS.Lambda timeout value is reset to the default value of 120000ms. As my Lambda function takes more time to execute (but still less than

AWS Lambda invoke function (js sdk): timeout resets to default

强颜欢笑 提交于 2020-12-03 07:50:55
问题 I am running a Meteor (Node 4.4.7) application that performs long operations on AWS Lambda. I invoke the lambda function from my code and wait for the response before proceeding to the next invocation. I set the timeout to 300000ms as described in a former question (both on Lambda and in the AWS.Lambda object in my code). My problem is that sometimes the AWS.Lambda timeout value is reset to the default value of 120000ms. As my Lambda function takes more time to execute (but still less than

Lambda can't find modules from outer folders when deployed with CDK

帅比萌擦擦* 提交于 2020-12-03 05:04:52
问题 I am deploying some apis to API Gateway using cdk. My problem is the file that contains the lambda(index.ts) can't import any files or npm modules outside that folder(folder named get-users ). I tried copying node_modules folder and other files (which were outside the folder get-users ) to the folder get-users and it worked perfectly. Example error when importing lodash is as follows, "errorType": "Runtime.ImportModuleError", "errorMessage": "Error: Cannot find module 'lodash'", "stack": [

Lambda can't find modules from outer folders when deployed with CDK

浪尽此生 提交于 2020-12-03 05:03:55
问题 I am deploying some apis to API Gateway using cdk. My problem is the file that contains the lambda(index.ts) can't import any files or npm modules outside that folder(folder named get-users ). I tried copying node_modules folder and other files (which were outside the folder get-users ) to the folder get-users and it worked perfectly. Example error when importing lodash is as follows, "errorType": "Runtime.ImportModuleError", "errorMessage": "Error: Cannot find module 'lodash'", "stack": [

Lambda can't find modules from outer folders when deployed with CDK

余生颓废 提交于 2020-12-03 05:01:19
问题 I am deploying some apis to API Gateway using cdk. My problem is the file that contains the lambda(index.ts) can't import any files or npm modules outside that folder(folder named get-users ). I tried copying node_modules folder and other files (which were outside the folder get-users ) to the folder get-users and it worked perfectly. Example error when importing lodash is as follows, "errorType": "Runtime.ImportModuleError", "errorMessage": "Error: Cannot find module 'lodash'", "stack": [

.NET Core 3.1 - Dependency resolution failed for component - AWS Mock Lambda Test Tools

◇◆丶佛笑我妖孽 提交于 2020-12-02 10:11:04
问题 I create a new AWS Lambda .NET Core 3.1 project, then run it using AWS Lambda Test Tools, then I get this page as expected: However, if I install one of these packages: Microsoft.EntityFrameworkCore.SqlServer Microsoft.Data.SqlClient When I run, I get this error and the test page won't open: AWS .NET Core 3.1 Mock Lambda Test Tool (0.10.0) Unknown error occurred causing process exit: Dependency resolution failed for component C:\Users\siri\repos\bolao-futebol\website-core\AWSLambda1\bin\Debug

.NET Core 3.1 - Dependency resolution failed for component - AWS Mock Lambda Test Tools

南楼画角 提交于 2020-12-02 10:09:32
问题 I create a new AWS Lambda .NET Core 3.1 project, then run it using AWS Lambda Test Tools, then I get this page as expected: However, if I install one of these packages: Microsoft.EntityFrameworkCore.SqlServer Microsoft.Data.SqlClient When I run, I get this error and the test page won't open: AWS .NET Core 3.1 Mock Lambda Test Tool (0.10.0) Unknown error occurred causing process exit: Dependency resolution failed for component C:\Users\siri\repos\bolao-futebol\website-core\AWSLambda1\bin\Debug

.NET Core 3.1 - Dependency resolution failed for component - AWS Mock Lambda Test Tools

两盒软妹~` 提交于 2020-12-02 10:09:11
问题 I create a new AWS Lambda .NET Core 3.1 project, then run it using AWS Lambda Test Tools, then I get this page as expected: However, if I install one of these packages: Microsoft.EntityFrameworkCore.SqlServer Microsoft.Data.SqlClient When I run, I get this error and the test page won't open: AWS .NET Core 3.1 Mock Lambda Test Tool (0.10.0) Unknown error occurred causing process exit: Dependency resolution failed for component C:\Users\siri\repos\bolao-futebol\website-core\AWSLambda1\bin\Debug

Is it possible to keep an AWS Lambda function warm?

一笑奈何 提交于 2020-12-01 09:24:07
问题 There are a few pieces of my app that cannot afford the additional 1-2 second delay caused by the "freeze-thaw" cycle that Lambda functions go through when they're new or unused for some period of time. How can I keep these Lambda functions warm so AWS doesn't have to re-provision them all the time? This goes for both 1) infrequently-used functions and 2) recently-deployed functions. Ideally, there is a setting that I missed called "keep warm" that increases the cost of the Lambda functions,