AWS Lambda: How to store a secret to an external API?

In this video we take a look at how secrets, private keys and passwords should be stored in a lambda function. First, we extract hardcoded secrets into environment variables, then we learn how to encrypt these variables using a key from KMS (Key Management Service) and how to decrypt them in the lambda function.

Links:
The code used in this video: https://github.com/BiteSizeAcademy/lambda-secrets

Videos:

Don’t forget to subscribe!

#lambda

How to use environment variables with a Lambda function? (and how to encrypt them withKMS)
1.45 GEEK