我试图部署一个python lambda功能的依赖性和我得到一个错误,从docker(Centos linux),有的是无效的结合安装的规格。 错误是 "/path//to/my/code:/asset-input:z,delegated": invalid mode: delegated
下面是什么我的代码看起来像lambda功能:
python_function = Function(
self,
id="PythonFunction",
runtime=Runtime.PYTHON_3_9,
handler="app.main.lambda_handler",
timeout=Duration.seconds(20),
code=Code.from_asset(
path=str(python_function_path.resolve()),
bundling=BundlingOptions(
image=Runtime.PYTHON_3_9.bundling_image,
command=[
"bash",
"-c",
"pip install -r requirements.txt -t /asset-output && cp -au . /asset-output",
],
),
),
memory_size=128,
log_retention=RetentionDays.TWO_WEEKS,
)
这工作只是现在我Mac,但试图部署从Centos是不成功的。