मैं कोशिश कर रहा हूँ को तैनात करने के लिए एक अजगर लैम्ब्डा समारोह के साथ निर्भरता और मैं एक त्रुटि हो रही से डोकर डेमॉन (पर Centos लिनक्स) है कि वहाँ है एक अमान्य बाँध माउंट कल्पना. त्रुटि है "/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,
)
यह बस ठीक काम करता है अपने मैक पर है, लेकिन कोशिश कर रहा है को तैनात करने के लिए Centos से असफल है ।