Please Help! Cloudfront FUNCTIONS with a lot of LOGS charging

0

I created cloudfront functions its called every second in average every call has one log, and now aws is charging me for every logs created by CLOUDFRONT FUNCTIONS

I didnt enable the logs, i didnt find WHERE to enable/disable it please help!!!

1 Respuesta
0
Respuesta aceptada

Please see the documentation on edge function logging:

If a CloudFront function's code contains console.log() statements, CloudFront Functions automatically sends these log lines to CloudWatch Logs. If there are no console.log() statements, nothing is sent to CloudWatch Logs.

So if you want to disable the logging, you'd need to make sure you do not have any console.log() statements in your code. Otherwise, logs will be sent to Cloudwatch logs as described in the documentation.

AWS
EXPERTO
Paul_L
respondido hace 9 meses
profile picture
EXPERTO
revisado hace 9 meses
profile picture
EXPERTO
revisado hace 9 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas