Use environment variables in an AWS Lambda function

InstructorTomasz Łakomy

Share this video with your friends

Send Tweet

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.