En ajoutant une association de fonction Lambda à une distribution CloudFront, j'obtiens cette erreur
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)