Security while providing connection options.

0

How can I provide connection options securely while loading data using glueContext.create_dynamic_frame.from_options , writing them down in the script is a no go and providing them through arguments to the job also does not seem to be secure. Is there something that I am missing here or there is no other way? TIA.

lalywr
asked 4 years ago358 views
1 Answer
0
Accepted Answer

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=&#39;<Glue connection name>&#39;)
user = jdbc_conf[&#39;user&#39;]
password = jdbc_conf[&#39;password&#39;]

See details here.
https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-crawler-pyspark-extensions-glue-context.html

AWS
answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions