내가 노력하고 배포하는 파이썬은 람다 함수와 함께 종속성과 오류가 발생합니에서 도커 daemon(에 Centos)이 있다는 잘못된 바인딩 mount spec. 류 "/path//to/my/code:/asset-input:z,delegated": invalid mode: delegated
다음과 같은 내 코드는 다음과 같 위한 람다 함수:
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 은 실패합니다.