I am looking to query postgres DB from an AWS lambda docker image. I thought of using psycopg2 library but it doesn't install correctly.
I am getting the below error in my code pipeline when I included psycopg2 in my requirements.txt
.
running egg_info
creating /tmp/pip-pip-egg-info-k018kh5i/psycopg2.egg-info
writing /tmp/pip-pip-egg-info-k018kh5i/psycopg2.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-k018kh5i/psycopg2.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-k018kh5i/psycopg2.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-k018kh5i/psycopg2.egg-info/SOURCES.txt'
Error: pg_config executable not found.
Is there any other way to access postgres sql?
I also tried RUN pip3 install
in Dockerfile and it doesn't work either.
Thanks