Skip to content

Multiprocess issues in AWS Lambda when running Ansible

0

Encountering error related to Multiprocessing in AWS Lambda - Enter image description here

We're utilizing Ansible packages within our Lambda code via AWS EFS. Our objective is to leverage the PlaybookExecutor for inventory and playbook management. However, we encountered the above mentioned error on multiprocessing. Could you provide assistance in resolving this issue?

2 Answers
1

Hello, Lambda does not have shared memory device. You can have a look on these:

https://github.com/ansible/ansible/issues/18469

https://pypi.org/project/lambda-multiprocessing/

Thanks.

answered a year ago
EXPERT
reviewed a year ago
0

When deploying applications on AWS Lambda, one of the common limitations is the absence of shared memory for concurrent processes. If you need to implement parallel processing in your Lambda functions, you might face challenges due to this constraint. The lambda-multiprocessing library can help address this issue by providing a way to leverage Python's multiprocessing module in the Lambda environment.

You can refer to the url that @Zen shared

EXPERT
answered a year 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.