How do I set up the same environment variables for more than one Lambda function?
Last updated: 2021-05-26
I want to use the same environment variables for multiple AWS Lambda functions. How do I set that up?
Lambda environment variables are specific to individual Lambda functions. You must configure environment variables for each function that you create.
If you need a common place to store all your frequently used key-value pairs, you can use AWS Systems Manager Parameter Store. For more information, see Sharing secrets with AWS Lambda using AWS Systems Manager Parameter Store.
Note: Using Parameter Store can incur charges on your AWS account. For more information, see Parameter Store on the AWS Systems Manager pricing webpage.
Environment (AWS Lambda developer guide API reference)