How do I set up the same environment variables for more than one Lambda function?

1 minute read
0

I want to use the same environment variables for multiple AWS Lambda functions. How do I set that up?

Resolution

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.


Related information

Environment (AWS Lambda developer guide API reference)

How do I get a Lambda function in a VPC to access Systems Manager Parameter Store?

AWS OFFICIAL
AWS OFFICIALUpdated 3 years ago