-
Hey, so I have a use-case where I have an executable that requires .NET6 SDK and the lambda function should trigger that executable with the required arguments to run it inside lambda, but the aws lambda runtime for .NET6 provide by Amazon does not include the SDK part to run the executable. Is it possible to run the Lambda function using the .NET6 sdk image? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
@zeusongit I'm unsure if I understand your use case correctly. You can deploy Lambda function in a custom runtime using the available blueprints. Lambda function runs inside a container within a restricted space and the only writable area is
Thanks, |
Beta Was this translation helpful? Give feedback.
-
@zeusongit There are no plans to make the .NET SDK available in the Lambda managed runtime. I would increase the size of the base runtime significantly given the SDK is at least three times the size of the runtime and this could affect cold starts for Lambda. The work around for this use cases is build your own Lambda container image that has the SDK built into along with our Lambda runtime libraries. Then you can deploy your Lambda function as a container image with all of the unique runtime dependencies that you require. Here is Lambda's docs for creating images: https://docs.aws.amazon.com/lambda/latest/dg/images-create.html. And here is our README for how we create the .NET Lambda base images that you can borrow from. https://github.com/aws/aws-lambda-dotnet/tree/master/LambdaRuntimeDockerfiles |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
@zeusongit There are no plans to make the .NET SDK available in the Lambda managed runtime. I would increase the size of the base runtime significantly given the SDK is at least three times the size of the runtime and this could affect cold starts for Lambda.
The work around for this use cases is build your own Lambda container image that has the SDK built into along with our Lambda runtime libraries. Then you can deploy your Lambda function as a container image with all of the unique runtime dependencies that you require. Here is Lambda's docs for creating images: https://docs.aws.amazon.com/lambda/latest/dg/images-create.html. And here is our README for how we create the .NET Lambda bas…