How do I increase my Lambda environment variable size quota?

Last updated: 2021-05-26

I want to configure more than 4 KB of environment variables for my AWS Lambda function. How do I increase my service quota for Lambda environment variables?

Resolution

Lambda environment variables have a default 4 KB service quota that can't be increased.

To configure more than 4 KB of environment variables for your Lambda function, you must use an external data store. For example, another database or either of the following AWS services:
AWS Systems Manager Parameter Store
Amazon Simple Storage Service (Amazon S3)

Note: Using either Parameter Store or Amazon S3 can incur charges on your AWS account. For pricing information, see AWS pricing. To review the Lambda service quotas, see the Service Quotas console.