lambda function reading bucket name and key