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

질문됨 2년 전1183회 조회
1개 답변
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
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠