If I know the url, how to find the file in S3 in t

2019-08-10 08:11发布

I have this URL, but I can't find it in any of the S3 buckets. I'm quite sure that I'm logged in with the same AWS account as I did when I uploaded it. I might be mistaken of course. All the buckets I can see in the AWS Management Console (logged in with a root account) have URLs that start with http://[bucket-name].s3-website-eu-west-1.amazonaws.com

How can I reverse engineer the Amazon account and S3 bucket that this file is placed in?

https://s3.eu-central-1.amazonaws.com/ac-mail/footer.jpg

My end goal is to replace the file with another one. But I first need to find it.

1条回答
干净又极端
2楼-- · 2019-08-10 08:27

The bucket name is "ac-mail". I believe it is not possible to find the owner account of the bucket just from the bucket name unless you own the bucket or you have the permission via the bucket policy. In that case, the command will be: aws s3api get-bucket-acl --bucket ac-mail

** It does return the canonical id of the owner.

查看更多
登录 后发表回答