1 Answer
- Newest
- Most votes
- Most comments
0
GlueContext.extract_jdbc_conf method might help your use-case.
With this method, you can retrieve JDBC parameters from your existing Glue connections.
jdbc_conf = glue_context.extract_jdbc_conf(connection_name='<Glue connection name>')
user = jdbc_conf['user']
password = jdbc_conf['password']
See details here.
https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-crawler-pyspark-extensions-glue-context.html
answered 6 years ago
Relevant content
- asked 9 months ago
- AWS OFFICIALUpdated 3 years ago
