Serverless Image Handler
Serverless Image Handler

Appendix H: Using Lambda Environment Variables

You can use AWS Lambda environment variables to set a variety of Thumbor config parameters and solution configurations.

Certain common values in the Thumbor configuration can be controlled using Lambda environment variables such as:

  • RESPECT_ORIENTATION

  • ALLOW_UNSAFE_URL

  • SECURITY_KEY

The following solution configurations are controlled by environment variables:

  • SEND_ANONYMOUS_DATA

  • LOG_LEVEL

  • ENABLE_CORS

Use the following procedure to adjust these Lambda environment variables :

  1. Navigate to the AWS Lambda console.

  2. Select the <stack-name>-ImageHandlerFunction-xxxx > and navigate to the configuration tab.

  3. Navigate to the Environment variables section.

  4. Add the new environment variable by providing the key and value.