I'm trying to use the PostgresHook inside a DAG in AWS Airflow Managed Service as the following way:
from airflow.hooks.postgres_hook import PostgresHook
The Airflow version that uses this service is 1.10.12, but when I upload this DAG the Airflow UI shows me the "Broken DAG: No module named 'psycopg2' " error.
I have the requirements.txt file defined with these modules but none seems to be working:
psycopg2-binary
psycopg2
tableauserverclient
google-auth
botocore
apache-airflow[postgres]
Does anyone know if there is a workaroundabout this issue? There is not so much info about that in AWS forum page.