Lambda Container-Based Function Needs --privileged and --device /dev/fuse

0

How can my container-based lambda function run the container with the "--privileged" and "--device /dev/fuse" options? My use case is a container that uses s3fs to mount an S3 bucket.

I thought for sure I had read this is possible, but now I'm not finding it. If this isn't possible running the container using lambda, is it possible under ECS?

已提問 2 年前檢視次數 212 次
1 個回答
1
已接受的答案

When you deploy a lambda using a container instead of a zip file, lambda doesn't actually run as a docker container. The container is just a packaging construct. At runtime, the lambda function runs just like it would if it were packaged as a zip file.

The ephemeral storage that is assigned to a lambda function can now be up to 10 GB - https://aws.amazon.com/blogs/aws/aws-lambda-now-supports-up-to-10-gb-ephemeral-storage/

Also, it is possible to use EFS with lambda functions - https://aws.amazon.com/blogs/compute/using-amazon-efs-for-aws-lambda-in-your-serverless-applications/

profile pictureAWS
專家
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南