In AWS Lambda, you can enable version provisioning for your functions to manage and publish different versions for different stages such as development to test to production. For each version of Lambda functions, you have different environment variables for different stages, and these environment variables are also saved as snapshots of that version; they cannot changed.
If requirements change, then you can create a new version of the Lambda function. Updating environment variables is done to create new versions to meet requirements. Then, you can publish the new version. The function's current version should be marked as $LATEST:
You can also contain aliases to point to a particular version ...