Skip to content

aws-lambda: Support DOTNET_7 for Function resources #23203

@petro2050

Description

@petro2050

Describe the feature

I'm trying to create a Lambda with Runtime set to .NET 7. Is this supported? There doesn't seem to be an enum for DOTNET_7.

public static readonly DOTNET_6 = Runtime.of('DOTNET_6')

Also, I'm trying to deploy an ASP.NET WebAPI project. I've got some Lambda logs:

It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '7.0.0' (x64) was not found.

I found this article that shows support for .NET 7, but it's only for native AOT. There is no native AOT support for ASP.NET yet. Can you tell me how I can go about deploying my app?

Use Case

I've upgraded everything to .NET 7 locally. Got stuck with deployment.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.53.0

Environment details (OS name and version, etc.)

AL2

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-lambdaRelated to AWS Lambdaclosed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.feature-requestA feature should be added or improved.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions