Lambda 容器化函数需要 --privileged 和 --device /dev/fuse

0

【以下的问题经过翻译处理】 我的基于容器的Lambda函数如何使用“--privileged”和“--device /dev/fuse”选项运行容器?我的用例是使用s3fs挂载S3存储桶的容器。

我本来以为这是可能的,但是现在我找不到相关信息了。如果Lambda函数无法运行容器时可以在ECS中实现吗?

profile picture
EXPERT
asked 5 months ago25 views
1 Answer
0

【以下的回答经过翻译处理】 当您使用容器而不是zip文件部署lambda时,lambda实际上并不作为一个docker容器运行。容器只是一个打包构造。在运行时,lambda函数运行方式与如果将其打包为zip文件相同。

分配给lambda函数的临时存储现在可以达到10GB - https://aws.amazon.com/blogs/aws/aws-lambda-now-supports-up-to-10-gb-ephemeral-storage/

此外,可以使用EFS与lambda函数 - https://aws.amazon.com/blogs/compute/using-amazon-efs-for-aws-lambda-in-your-serverless-applications/

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions