Skip to content

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

asked 4 years ago2.1K views

1 Answer
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

AWS

answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.