Je suis en train de déployer un python une fonction lambda avec dépendances et j'obtiens une erreur à partir du panneau de démon (sur Centos linux) n'est pas valide lier mont spec. L'erreur est "/path//to/my/code:/asset-input:z,delegated": invalid mode: delegated
La suivante est ce que mon code ressemble à la fonction 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,
)
Cela fonctionne bien sur mon Mac, mais en essayant de déployer à partir de Centos est un échec.