简体   繁体   中英

Using AWS lambda with python or java code to get JSON from RestAPI call and insert into oracle DB

Can i use AWS lambda to call a RestAPI and iterate thru JSON, extract and load data into oracle DB on AWS RDS by passing the parameters to an oracle package? If yes can someone please let me know to secure credentials to call RestAPI and Oracle user?

您应该使用AWS Secrets Manager ,这是来自 AWS 的一个很好的指南

As the other answer pointed out, you can use AWS Secrets Manager if you want to store secrets. But its most useful when you are working with AWS Managed RDS Oracle DB. Its not clear from your question whether this is the case.

If that is not the case, then AWS Systems Manager Parameter Store with SecretString type could be better, as it is free (AWS Secrets Manager is not free).

AWS does not provide build-in SDKs in lambda for different databases. However, Orcale provides cx_Oracle which is module for Python. To use that on lambda you would have to construct a custom development package or your own lambda layer to use cx_Oracle .

To sum up, I don't see a reason why you wouldn't be able to use lambda to work with your DB. However, this is something that will not work out-of-the box and requires some development.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM