-
Notifications
You must be signed in to change notification settings - Fork 490
Unable to create a dotnet 9 Lambda function #2033
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
Comments
@genifycom Good morning. Thanks for opening the issue. Using the instructions on the page https://docs.aws.amazon.com/lambda/latest/dg/csharp-image.html, I was able to deploy the function with the below Dockerfile:
Used the latest image tag from https://gallery.ecr.aws/lambda/dotnet. Running
However, when I execute
EDIT: I was on Apple Mac M2 and had to use
|
Thanks Ashish, I changed to your docker file image. Using your publish command (with a profile as I have multiple profiles).
I am using Windows BTW. |
@genifycom Could you please share your |
FROM public.ecr.aws/lambda/dotnet:9.2025.04.03.12 WORKDIR /var/task COPY "bin/Release/lambda-publish" . |
Hi Ashish, Any updates? Thanks, |
Describe the bug
Tried following https://docs.aws.amazon.com/lambda/latest/dg/csharp-image.html
with Docker file"
ECR container gets created.
When deploying to Lambda
Creating new Lambda function MyFunction
Error creating Lambda function: The image manifest, config or layer media type for the source image 497195724xxx.dkr.ecr.us-east-1.amazonaws.com/myfunction:latest is not supported.
Tried using the command
dotnet lambda deploy-function MyFunction --function-role lambda-role --provenance=false --platform linux/amd64
as per several reports, but same result.
Anyone have a dotnet 9 working sample?
Regression Issue
Expected Behavior
We don't have a sample to follow for dotnet 9 so we are guessing. However, something appears to be different between dotnet 8 and dotnet 9.
Current Behavior
Unable to create a dotnet 9 Lambda function from an ECR
Reproduction Steps
Follow the example on https://docs.aws.amazon.com/lambda/latest/dg/csharp-image.html
but change 8 to 9
Possible Solution
Unknown
Additional Information/Context
Please can we have a dotnet 9 example to follow/
AWS .NET SDK and/or Package version used
AWSSDK 1.66.0.0
Targeted .NET Platform
Operating System and version
Windows 11 Pro 24H2
The text was updated successfully, but these errors were encountered: