我在执行Lamba函数时遇到权限错误.错误为>[错误30]只读文件系统:‘/home/sbx_user’

我在我的AWS Lamba中使用了一些Python包,我假设其中一个库try 访问/读/写AWS lambda文件系统.

可以在AWS lambda中更改文件/文件夹权限吗?

推荐答案

除了lambda专用空间,您不能更改本地文件系统

Each execution environment provides between 512 MB and 10,240 MB, in 1-MB
increments, of disk space in the /tmp directory. The directory content
remains when the execution environment is frozen, providing a transient cache
that can be used for multiple invocations. You can add extra code to check
if the cache has the data that you stored. For more information on
deployment size limits, see Lambda quotas.

如答案heredocs

Python相关问答推荐

Pandas 按照特殊规则保留每n行

从 struct 类型创建MultiPolygon对象,并使用Polars列出[list[f64]列

如何在矩阵上并行化简单循环?

由于瓶颈,Python代码执行太慢-寻求性能优化

数字梯度的意外值

Python会扔掉未使用的表情吗?

Polars LazyFrame在收集后未返回指定的模式顺序

滚动和,句号来自Pandas列

删除最后一个pip安装的包

在Google Colab中设置Llama-2出现问题-加载判断点碎片时Cell-run失败

Python 约束无法解决n皇后之谜

优化pytorch函数以消除for循环

ODE集成中如何终止solve_ivp的无限运行

OR—Tools中CP—SAT求解器的IntVar设置值

如果条件不满足,我如何获得掩码的第一个索引并获得None?

使用groupby方法移除公共子字符串

如何在turtle中不使用write()来绘制填充字母(例如OEG)

如何从需要点击/切换的网页中提取表格?

Cython无法识别Numpy类型

如何过滤组s最大和最小行使用`transform`'