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?

posta 2 anni fa212 visualizzazioni
1 Risposta
1
Risposta accettata

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
ESPERTO
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande