Example AWS Lambda C# .NET Core 2.2 though Custom Runtime (Amazon.Lambda.RuntimeSupport) with connect MySQL via not using any ORM
Example for optimize cold start with Amazon.Lambda.RuntimeSupport
- Example code for using Amazon.Lambda.RuntimeSupport
Deploy
$ cd src/aws-lambda-crt-db
$ dotnet lambda deploy-function {LAMBDA_FUNCTION_NAME} –-function-role {ROLE_NAME}
Try to Run and Get result
$ cd src/aws-lambda-crt-db
$ aws lambda invoke --function-name {LAMBDA_FUNCTION_NAME} output.txt