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)
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 VMware Downloads.
To work around this issueifyouare unable to upgrade, create a zip package for the script:
Create a directory for your files, for example "abx-action".
In the directory, add your client_main.py and requirements.txt files.
In the directory, install the dependencies from requirements.txt file using the command: