1 回答
- 最新
- 投票最多
- 评论最多
0
In your CDK code your're using aws-s3-assets, which is a high level construct that abstracts packaging AWS Lambda functions. The default behavior of this construct is to zip all the content into a folder and upload it to an Amazon Simple Storage Service (Amazon S3) bucket. That works great for Lambda runtimes like Python or Node.js, which do not require code compilation, but for .NET, Java, or Go, which requires code compilation you need to implement BundlingOptions, here's a code sample that show how to implement it, you'll notice that all the 3 Lambda function are Minimal API, just like the one you're trying to build
To learn more about, please read the blog post: Build, package, and publish .NET C# Lambda functions with the AWS CDK
已回答 1 年前
相关内容
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
I've alerted another SA with expertise in this area, so hopefully we'll have an answer for you in the near future.