Skip to content

Unable to create a dotnet 9 Lambda function #2033

Open
@genifycom

Description

@genifycom

Describe the bug

Tried following https://docs.aws.amazon.com/lambda/latest/dg/csharp-image.html
with Docker file"

FROM public.ecr.aws/lambda/dotnet:9
WORKDIR /var/task
COPY "bin/Release/lambda-publish"  .
CMD [ "MyFunction::MyFunction.Function::FunctionHandler" ]

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

  • Select this option if this issue appears to be a regression.

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

NET Core 9

Operating System and version

Windows 11 Pro 24H2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions