Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out who uploaded data in S3 bucket

I have a shared S3 bucket with other members in the team. Is there a way to find out who uploaded a particular file in the bucket?

like image 268
Shabbir Bata Avatar asked Sep 22 '17 15:09

Shabbir Bata


1 Answers

Buckets are owned by an AWS Account, not individual users. When a user makes an API call, AWS authenticates the user and verifies that they have permission to make the call. After that, it is the Account that owns the content. (Although objects can sometimes have a specific owner, which gets even more confusing.)

You can now use AWS CloudTrail to track data events on Amazon S3:

AWS CloudTrail now supports Amazon S3 Data Events. You can now record all API actions on S3 Objects and receive detailed information such as the AWS account of the caller, IAM user role of the caller, time of the API call, IP address of the API, and other details.

like image 152
John Rotenstein Avatar answered Oct 07 '22 09:10

John Rotenstein