如何在AWS参数存储中存储json /从其中获取json

问题描述 投票:0回答:1

我使用Livy REST API提交Spark应用。

{
  “file”: <application-jar>,
  “className”: “<main-class>”,
  “args”: my_args,
  “conf”: my_conf
}

my_args = [args1, args2, ...]
my_conf = {'foo1': 'bar1', 'foo2': 'bar2'...}

我希望my_conf(json机密)存储在AWS SSM参数存储中,并在我使用Livy的python脚本提交spark应用时从参数存储中使用它。如何存储和从参数存储中获取(从python中获取相同的json)my_conf?

json amazon-web-services parameters store livy
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.