Running Ansible in aws lambda

0

I would like to run an ansible playbook in aws lambda, I have created a custom image for this and when I was able to final trigger the function, I am getting error like

[ERROR] AnsibleError: Unable to use multiprocessing, this is normally caused by lack of access to /dev/shm: [Errno 38] Function not implemented

ansible uses python multiprocessing for it task queue manager and it uses multiprocessing queue, which uses /dev/shm to create the shared data between processes. Is there a way I can make it available for ansible ?

code

preguntada hace 2 años1183 visualizaciones
1 Respuesta
0

You will not get access to /dev/shm. You only have access to /tmp unless you configure access to EFS. See https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtime-environment.html and https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html

profile pictureAWS
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas