- Adding environment variables

Environment variables are one way to provide parameters to a Lambda function. Accessing these variables is the same as retrieving your Shell environment variables via the function os.environ in Python.

  1. Start by scrolling to the Environment variables section of your Lambda Panel, it is located below the Function code section.
  2. Click on Manage environment variables, then click on Add environment variables Lambda Create Function
  3. In the Key text box, enter the text MY_S3_BUCKET, in the Value field add the name of the S3 bucket that was created during the very first step. Lambda Create Function