how to find out what are the privilege on a bucket/object in a s3 bucket?

0

I am trying to copy a file from an existing bucket, to another bucket. I tried the copy and sync command , but it fails . I am assuming, that the bucket owner doesn't have full access to this file/object. where/how can i find the access/permission info for this object via cli. also , when we copy files from one bucket to another , say via aws s3 cp or sync command , how do i give full access to the owner of the destination bucket?

1개 답변
0

Hi,

I am assuming, this is concerning S3 Bucket policies. You could get the bucket policy via the CLI, as described in this URL: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/get-bucket-policy.html

You can also apply a modified policy back to the S3 bucket by using the put bucket policy via the CLI, as described in this URL: https://docs.aws.amazon.com/cli/latest/reference/s3api/put-bucket-policy.html

Please be mindful of the permissions needed to perform these CLI actions as already described in the above URLs.

Thanks

profile pictureAWS
Rama
답변함 일 년 전

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

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

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

관련 콘텐츠