Posted On: Jun 29, 2023
AWS Lambda console code editor now includes a read file listing all the environment variables associated with the function, making it easier for developers to discover the variables and reference them in their code. Environment variables are key-value pairs that developers use to extend a function's configuration outside of their code. When referencing the environment variables in their code, developers need the keys.
With this launch, developers can conveniently view their function's version specific environment variables and copy the keys to be referenced in their code from the read file within the editor, avoiding navigating to the functions configuration page.
This capability is available in all Regions where Lambda is available, except for China and GovCloud Regions.
To learn more, see Using Environment Variables in the AWS Lambda Developer Guide.