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 Answer
0
Accepted Answer

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
EXPERT
Paul_L
answered 9 months ago
profile picture
EXPERT
reviewed 9 months ago
profile picture
EXPERT
reviewed 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions