-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS Lambda for .NET Support #469
Comments
I tried this out and it makes .NET Lambda development with CDK soooo much better! It worked great! If there is more testing you need me to do, please let me know. My stack included this code:
|
It even worked seamlessly with a native AOT .NET project publish to AL2 and automatically built on Docker. |
I would recommend for .NET integrating with our Amazon.Lambda.Tools tooling for bundling. We use it under the covers for all of our AWS tooling that supports .NET packaging including SAM CLI and Visual Studio. Happy to contribute where I can. |
@normj I don't know if @vlesierse linked it above at all, or if you've seen it, but there is already a working POC that uses Amazon.Lambda.Tools. https://github.com/xaaskit/cdk-aws-lambda-dotnet The call to |
@normj that is exactly how it is implemented. This means that the Lambda Tools need to be installed. If not, it will build from a container which has the tools installed. There is one thing that might need to adjusted to the Lambda Tool, which is to make the zip creation optional with a command line parameter. The current implementation zips the binaries with the Lambda Tool, unzips it and let CDK zip it again for uploading. |
Closing this ticket as this is not a current priority. We don't have the bandwidth to collaborate on design or implementation. We suggest you pursue experimentation in a separate package or a fork if needed. If a successful implementation emerges, reopen the proposal with details on the functionality and how it can be implemented in the core library. |
I believe having this feature in the AWS CDK would make the CDK easier and more appealing to use for .NET developers. I have been doing .NET development for many years, and I can certainly recognize the current sub-optimal workflow outlined in issue description. Having to use a "multi step" deployment approach, where you first need to build and package the code yourself, and then trigger the CDK deployment afterwards is sub-optimal. Looking at the work done in the referenced project: https://github.com/xaaskit/cdk-aws-lambda-dotnet it looks like there is already a solid example of how a Based on the above, I hope the team will consider to re-open this issue. Thank you. |
This could enable |
Description
As a .NET developer I would like to build serverless Lambda application with .NET and deploy this application using AWS CDK. It is painful to design a build process which first need to build/test and package one or more Lambda functions in my project and then use lambda.Code.fromAsset(path.join(__dirname, 'out', 'package.zip')) to point to those packages. This has been beautifully solved with the aws-lambda-go, aws-lambda-nodejs and aws-lambda-python L2 constructs.
Roles
Workflow
status/proposed
)status/review
)api-approved
applied to pull request)status/final-comments-period
)status/approved
)status/planning
)status/implementing
)status/done
)The text was updated successfully, but these errors were encountered: