Use environment variables in an AWS Lambda function

Secrets are meant to be... well, secret. We should do whatever we can not to expose important secure keys (like database passwords) to the outside world. As such, hardcoding passwords inside of your source code is a terrible idea. Luckily, with AWS Lambda we can avoid that - in this quick lesson we're going to learn how we can use environment variables in order to pass in a password to a lambda function without potentially exposing it to the world.
Related Topics: Functional Programming Amazon Web Services