ABX AWS actions using Python dependencies with compiled binaries are failing to execute on AWS Lambda
search cancel

ABX AWS actions using Python dependencies with compiled binaries are failing to execute on AWS Lambda

book

Article ID: 339762

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:
ABX AWS actions are failing with an error similar to
 
Runtime.ImportModuleError: Unable to import module 'abx_wrapper': /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /var/task/cryptography/hazmat/bindings/_rust.abi3.so)


Environment

VMware vRealize Automation 8.8.x
VMware vRealize Automation 8.7.x

Cause

When using Python in AWS Lambda and adding dependencies (such as Paramiko), ABX installs the requested dependencies and then creates a zip bundle for AWS Lambda.

This issue occurs due to the dependencies installation command not containing --platform manylinux2014_x86_64 tag.

Resolution

This issue is resolved in VMware vRealize Automation 8.9.1, available at Broadcom Support Portal.

To work around this issue if you are unable to upgrade,
create a zip package for the script:

  1. Create a directory for your files, for example "abx-action".
  2. In the directory, add your client_main.py and requirements.txt files.
  3. In the directory, install the dependencies from requirements.txt file using the command:
pip3 install -r requirements.txt --platform manylinux2014_x86_64 --target=/home/user/abx-action --python 3.7 --only-binary=:all:
  1. Inside the directory run the command:
zip -r ../abx-action.zip


For more information, see Create a ZIP package for Python runtime extensibility actions.