AWS Lambda: How to store secret to external API?

前端 未结 5 572
时光说笑
时光说笑 2020-12-22 19:11

I\'m building a monitoring tool based on AWS Lambda. Given a set of metrics, the Lambdas should be able to send SMS using Twilio API. To be able to use the API, Twilio provi

5条回答
  •  暖寄归人
    2020-12-22 19:56

    There is a blueprint for a Nodejs Lambda function that starts off with decrypting an api key from kms. It provides an easy way to decrypt using a promise interface. It also gives you the role permissions that you need to give the lambda function in order to access kms. The blue print can be found by searching for "algorithmia-blueprint"

提交回复
热议问题