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 年前檢視次數 257 次
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
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南