Remember to create a Lambda layer containing the redshift-connector library and then add it to the Lambda function. A common mistake with Lambda is assuming that including an import statement is always enough. And even after creating a new layer, it is common to forget to then explicitly attach that new layer to the function.