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 Antwort
0
Akzeptierte Antwort

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
EXPERTE
Paul_L
beantwortet vor 9 Monaten
profile picture
EXPERTE
überprüft vor 9 Monaten
profile picture
EXPERTE
überprüft vor 9 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen