1

so somehow I've exceeded the 20k allocated monthly requests on the free tier in AWS. in about 7 days.

I was wondering how I can debug this and see where these requests are being made as it seems a hugely successive amount. I have 2 buckets, one where the code lives and one where images live. but images are cached in cloudfront, which should minify the requests made to s3, right?

so I checked cloudtrail but I can't seem to see anywhere that has all the 20k + requests made. is this possible and how do I debug s3 so I can work out where I'm making all these requests

thanks

Red Baron
  • 7,181
  • 10
  • 39
  • 86

1 Answers1

0

For you to see in CloudTrail you actually need to enable it when you create a trail.

This is the same for Lambda API calls.

You can also enable S3 access logging to see server access logs for requests for S3 objects.

Chris Williams
  • 32,215
  • 4
  • 30
  • 68
  • Comments are not for extended discussion; this conversation has been [moved to chat](https://chat.stackoverflow.com/rooms/217456/discussion-on-answer-by-chris-williams-how-to-monitor-and-debug-every-request-ma). – Samuel Liew Jul 08 '20 at 10:43