serverless-application-model

How to run a C++ AWS Lambda Function locally with SAM?

╄→гoц情女王★ 提交于 2020-02-07 04:25:20
问题 I would like to try the custom C++ runtime for AWS Lambda and testing it locally using SAM. Unfortunately I get the error Runtime exited without providing a reason (compare error details below). How can I run C++ Lambda functions locally with SAM? Approach: I am following the exact steps described in official C++ Introduction blog, up to the last step of "Create your C++ function". The rest of the blog is about deploying the function on Lambda (which I DO NOT want to do, since I would like to

Create an API Gateway Proxy Resource using SAM

谁说我不能喝 提交于 2020-01-13 05:12:07
问题 I have an apparently-simple requirement to create a proxy resource in SAM (Amazon's Serverless Application Model). So simple in fact that Amazon's documentation appears to leave this as an exercise to the reader! I want to create an AWS API Gateway catch-all endpoint to proxy everything to another HTTP service. In the AWS Console, the configuration I am trying to build looks as follows: I have seen this excellent post by Christian Johansen and his related Stack Overflow question here for how

Execution failed due to configuration error: Invalid permissions on Lambda function

荒凉一梦 提交于 2019-12-13 16:06:22
问题 I am building a serverless application using AWS Lambda and API Gateway via Visual Studio. I am working in C#, and using the serverless application model (SAM) in order to deploy my API. I build the code in Visual Studio, then deploy via publish to Lambda. This is working, except every time I do a new build, and try to execute an API call, I get this error: Execution failed due to configuration error: Invalid permissions on Lambda function Doing some research, I found this fix mentioned

Create an API Gateway Proxy Resource using SAM

限于喜欢 提交于 2019-12-04 16:03:15
I have an apparently-simple requirement to create a proxy resource in SAM (Amazon's Serverless Application Model). So simple in fact that Amazon's documentation appears to leave this as an exercise to the reader! I want to create an AWS API Gateway catch-all endpoint to proxy everything to another HTTP service. In the AWS Console, the configuration I am trying to build looks as follows: I have seen this excellent post by Christian Johansen and his related Stack Overflow question here for how to do the same thing in CloudFormation. I suppose I could just use that code in SAM, however, SAM has