Retrieving Lambda environment variables
To retrieve environment variables in your function code, use the standard method for your programming language.
Lambda stores environment variables securely by encrypting them at rest. You can configure Lambda to use a different encryption key, encrypt environment variable values on the client side, or set environment variables in an AWS CloudFormation template with AWS Secrets Manager.