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

demandé il y a 2 ans1183 vues
1 réponse
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
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions