Lambda functions should have logging enabled

Esta página aún no está disponible en español. Estamos trabajando en su traducción.
Si tienes alguna pregunta o comentario sobre nuestro actual proyecto de traducción, no dudes en ponerte en contacto con nosotros.

Description

Lambda functions should have proper logging permissions to send logs to CloudWatch Logs for monitoring, debugging, and security auditing purposes.

Remediation

Ensure your Lambda function’s execution role has the necessary CloudWatch Logs permissions by attaching the AWS managed policy AWSLambdaBasicExecutionRole or creating a custom policy with the required actions: logs:CreateLogGroup, logs:CreateLogStream, and logs:PutLogEvents. Refer to Sending Lambda function logs to CloudWatch Logs.