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?

preguntada hace un año257 visualizaciones
1 Respuesta
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
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas