I was implementing `aws-lambda-deploy` pipe in my bitbucket pipeline, but I was not able to find a way to update environment variables of lambda.
We can do it easily while deploying via old method, using boto3 library.
update_function_configuration( FunctionName=functionName, Environment={ 'Variables': { 'environment' : environment, 'NODE_ENV': environment, 'api_url' : api_url } } )