Can I have common environment variables for a group of Lambda functions?

Last updated: 2020-02-18

Can I have common environment variables for a group of AWS Lambda functions?

Resolution

No. Lambda environment variables are specific to their own Lambda function.

If you need a common place to store all of your frequently used key-value pairs, you can use AWS Systems Manager Parameter Store. Note that you might have to write additional code for storing, retrieving, or rotating these values. For more information, see Sharing Secrets with AWS Lambda Using AWS Systems Manager Parameter Store.

Note: Using AWS Systems Manager Parameter Store can incur charges on your AWS account. For more information, see Parameter Store on the AWS Systems Manager pricing webpage.


Did this article help you?

Anything we could improve?


Need more help?