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 Answer
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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions

Relevant content