在提供连接选项的保障安全性。

0

【以下的问题经过翻译处理】 我如何在使用 glueContext.create_dynamic_frame.from_options 加载数据时安全地提供连接选项,将它们写在脚本中是不行的,并且通过作业的参数提供它们似乎也没有安全。我在这里缺少什么或者没有其他方法吗? TIA。

profile picture
EXPERTE
gefragt vor 5 Monaten11 Aufrufe
1 Antwort
0

【以下的回答经过翻译处理】 GlueContext.extract_jdbc_conf方法可能有助于您的使用情况。使用此方法,您可以从现有的 Glue 连接中检索 JDBC 参数。

jdbc_conf = glue_context.extract_jdbc_conf(connection_name='<Glue connection name>')
user = jdbc_conf['user']
password = jdbc_conf['password']

请在此查看详细信息。

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

profile picture
EXPERTE
beantwortet vor 5 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen

Relevanter Inhalt