При добавлении связи лямбда-функции в дистрибутив CloudFront я получаю эту ошибку
com.amazonaws.services.cloudfront.model.InvalidLambdaFunctionAssociationException: The function code size is larger than the maximum allowed size for functions that are triggered by a CloudFront event: 4283166 Max allowed: 1048576 Function: arn:aws:lambda:us-east-1:xxxxxxx:function:xxxxxxxxx (Service: AmazonCloudFront; Status Code: 400; Error Code: InvalidLambdaFunctionAssociation; Request ID: xxxxx-ee8e-4395-8655-8e49dfaa4765)