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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠