Pass environment variables to lambda function deployed with AWS CDK

There are cases that we need to deal with passing information inside lambda function using environment variables.
Here I am giving an example with CDK python which passes environment variable to a lambda and use those environment variables value inside the lambda.
base_lambda = lb.Function(self, 'base_lambda',
code =…