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
posta 4 anni fa368 visualizzazioni
1 Risposta
0
Risposta accettata

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
con risposta 4 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande