how to check permission/access of objects/files in a s3 bucket?

0

I copy files to my s3 bucket , either with copy or sync commands with bucket owner flag. --acl bucket-owner-full-control

if this flag is not used, what is the default setting ?

also, how can i check the access control of any bucket/object ? is there a cli command or directly from the console. ?

aws s3 cp source destination --acl bucket-owner-full-control
質問済み 5ヶ月前348ビュー
1回答
0

Hello.

Judging from the following document, I think it is set to "private" by default.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl
a

To check the permissions, use the following command to see the object permissions.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/get-object-acl.html

aws s3api get-object-acl --bucket "S3-Bucket-Name" --key test.txt
profile picture
エキスパート
回答済み 5ヶ月前

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

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

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

関連するコンテンツ