AWS Lambda: How to store secret to external API?

前端 未结 5 585
时光说笑
时光说笑 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:46

    As of AWS Lambda support for NodeJS 4.3, the correct answer is to use Environment Variables to store sensitive information. This feature integrates with AWS KMS, so you can use your own master keys to encrypt the secrets if the default is not enough.

提交回复
热议问题