1 Answer
- Newest
- Most votes
- Most comments
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
answered a year ago
Relevant content
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
I've alerted another SA with expertise in this area, so hopefully we'll have an answer for you in the near future.