Skip to content
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

.NET 6 #889

Closed
IvanFarkas opened this issue Jul 12, 2021 · 31 comments
Closed

.NET 6 #889

IvanFarkas opened this issue Jul 12, 2021 · 31 comments
Assignees
Labels
guidance Question that needs advice or information. module/lambda-client-lib

Comments

@IvanFarkas
Copy link

What's the ETA for a .NET 6 version, please?

@IvanFarkas IvanFarkas added guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged. labels Jul 12, 2021
@martonx
Copy link

martonx commented Jul 12, 2021

As I saw at .Net 3.1
.Net 6 will be release at 2021 december. AWS LAmbda .net team will start to work after it, and they will release .Net 6 support at 2022 Q2.

@ashishdhingra ashishdhingra removed the needs-triage This issue or PR still needs to be triaged. label Jul 13, 2021
@normj
Copy link
Member

normj commented Jul 14, 2021

I can't provide any details about upcoming releases but we do track LTS versions of language runtimes and we are tracking the .NET 6 which is an LTS version.

@IvanFarkas
Copy link
Author

Hi @normj. Thx for the wink ;-)

@IvanFarkas
Copy link
Author

@martonx Kedves Lajos! Koszonom szepen. Sejted, avagy tudod?

@ashishdhingra
Copy link
Contributor

Closing the issue since response has been logged.

@github-actions
Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@ivanfarkas2
Copy link

I solved the issue.
I built a .NET 6 docker image that has the .NET 6 AWS Lambda build.
The SAM is published by AWS Toolkit for VS 2019.
It works great!
I wait for NOONE!

@ivanfarkas2
Copy link

Please take your time. ;-)

@psimsa
Copy link

psimsa commented Nov 9, 2021

I solved the issue.

I built a .NET 6 docker image that has the .NET 6 AWS Lambda build.

The SAM is published by AWS Toolkit for VS 2019.

It works great!

I wait for NOONE!

Care to share the Dockerfile?

@normj
Copy link
Member

normj commented Nov 9, 2021

@ofcoursedude We are working on getting the .NET 6 image published to the public ECR. If you want want to use the image today you can build the image yourself with the following directions.

  • Use a PowerShell terminal
  • Clone this repo
  • cd into LambdaRuntimeDockerfiles
  • Run the command .\build.ps1 -TargetFramework net6 -Architecture amd64

That will create an image called dotnet6-runtime:base-image-amd64.

@psimsa
Copy link

psimsa commented Nov 9, 2021

@ofcoursedude We are working on getting the .NET 6 image published to the public ECR. If you want want to use the image today you can build the image yourself with the following directions.

  • Use a PowerShell terminal

  • Clone this repo

  • cd into LambdaRuntimeDockerfiles

  • Run the command .\build.ps1 -TargetFramework net6 -Architecture amd64

That will create an image called dotnet6-runtime:base-image-amd64.

Thanks, I'll give it a try.
Is there at least a rough ETA? We are hoping to switch to net6 largely for performance reasons. If the ETA is something like a few days or weeks we'll just wait for the official image, but if it were to be months away we'd probably it in for something temporary.

@shashijeevan
Copy link

I can't provide any details about upcoming releases but we do track LTS versions of language runtimes and we are tracking the .NET 6 which is an LTS version.

@normj
Now that we have the .Net 6 LTS version in GA, when can we expect its support in Lambda. Any specific ETA on this?

@normj
Copy link
Member

normj commented Nov 12, 2021

Sorry I can't give an ETA, best I can tell you it is mine and many others top focus.

@agm1981
Copy link

agm1981 commented Nov 12, 2021

Sorry I can't give an ETA, best I can tell you it is mine and many others top focus.

Thank you for the update.
Do you know the status for LTS native lambda support without a docker wrapper, Im guessing it is also being worked on.

@TrongTheAlpaca
Copy link

@ofcoursedude We are working on getting the .NET 6 image published to the public ECR. If you want want to use the image today you can build the image yourself with the following directions.

  • Use a PowerShell terminal
  • Clone this repo
  • cd into LambdaRuntimeDockerfiles
  • Run the command .\build.ps1 -TargetFramework net6 -Architecture amd64

That will create an image called dotnet6-runtime:base-image-amd64.

I can confirm that this works! Thanks!

@psimsa
Copy link

psimsa commented Nov 15, 2021

Does indeed. We have put it into our pipeline and seems to be fine - though I would obviously prefer to have official image... (at least until native support, which is the ultimate goal...)

@DerekBeattieCG
Copy link

@battarro This works now, see https://github.com/jasonkochel/Net6LambdaTemplate

@Kralizek
Copy link

Kralizek commented Dec 1, 2021

@ofcoursedude We are working on getting the .NET 6 image published to the public ECR. If you want want to use the image today you can build the image yourself with the following directions.

  • Use a PowerShell terminal
  • Clone this repo
  • cd into LambdaRuntimeDockerfiles
  • Run the command .\build.ps1 -TargetFramework net6 -Architecture amd64

That will create an image called dotnet6-runtime:base-image-amd64.

@normj Is there an issue we can track for when a .NET 6.0 base image is available on Public ECR?

@Newp
Copy link

Newp commented Dec 9, 2021

.net 6 container image has updated. https://gallery.ecr.aws/lambda/dotnet

@akospinter
Copy link

@normj , thanks for working on this.
Do you have any new information about when the native .NET 6 runtime will be available?

@michaelthwaite
Copy link

Is native support on the roadmap? Or is the recommendation now to roll-your-own?

@memark
Copy link

memark commented Jan 24, 2022

I recently wrote a blog post about this. Turns out there is actually very little you need to "roll on your own" to run .NET 6 on Lambda.

https://dev.to/memark/running-a-graphql-api-in-net-6-on-aws-lambda-17oc

@michaelthwaite
Copy link

@memark thanks for taking the time to write that up. Do you have a version that extracts your Serverless API element? I ask as I'm looking to simple update and deploy some existing dotnet core lambda functions that perform queue, email, event based processes and I was hoping to simply edit the runtime settings in my code and dotnet lambda deploy-function

@hounddog22030
Copy link
Contributor

hounddog22030 commented Jan 24, 2022

@memark thanks for taking the time to write that up. Do you have a version that extracts your Serverless API element? I ask as I'm looking to simple update and deploy some existing dotnet core lambda functions that perform queue, email, event based processes and I was hoping to simply edit the runtime settings in my code and dotnet lambda deploy-function

this is our version:

`
FROM public.ecr.aws/lambda/dotnet:latest AS base

WORKDIR /var/task

COPY "bin/linux-x64/publish" .

`

@memark
Copy link

memark commented Jan 24, 2022

Yup, that certainly works. Just don't forget the now added complexity of pushing/hosting/versioning your docker images. @hounddog22030

@memark
Copy link

memark commented Jan 26, 2022

@michaelthwaite You're welcome. I'm not sure exactly what you mean by "extract your serverless api element". The article has a full working code repository attached to it, if that would help. Could you elaborate?

@normj
Copy link
Member

normj commented Jan 27, 2022

@memark Nice write up on using the new Amazon.Lambda.AspNetCoreServer.Hosting package and custom runtimes.

@wjax
Copy link

wjax commented Feb 23, 2022

Hi,

It's been several months since .NET 6 LTS is out and still there is no lambda ZIP support?
Is there a problem or maybe it is not going to happen?

Could you please update the situation?

Thanks

@petarrepac
Copy link

Hi,

It's been several months since .NET 6 LTS is out and still there is no lambda ZIP support? Is there a problem or maybe it is not going to happen?

Could you please update the situation?

Thanks

Similar to #1062

@normj
Copy link
Member

normj commented Feb 24, 2022

It is official .NET 6 support is out. Here is the blog post for the release.

https://aws.amazon.com/blogs/compute/introducing-the-net-6-runtime-for-aws-lambda/

@petarrepac
Copy link

\o/

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guidance Question that needs advice or information. module/lambda-client-lib
Projects
None yet
Development

No branches or pull requests