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 個回答
0
已接受的答案

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
專家
Paul_L
已回答 9 個月前
profile picture
專家
已審閱 9 個月前
profile picture
專家
已審閱 9 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南