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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ