allow & deny policy

0

hello i want to create a policy to allow a user to add/list files to a bucket, and deny deleting or overwriting the file!
I'm always stuck! or I can upload and overwrite the file, or I can't upload, didn't find a policy that will allow me that please help, and thanks ahead

posta un anno fa220 visualizzazioni
2 Risposte
0

You can start with this bucket policy - https://raw.githubusercontent.com/mrdlcastle/aws-resources/main/default-bucket-policy.json

Update it to provide the necessary access to the role or user that you want to provide for the bucket.

Here's more on how to set up the bucket policy - https://docs.aws.amazon.com/AmazonS3/latest/userguide/add-bucket-policy.html

Hope this helps.

profile picture
con risposta un anno fa
0

Take a look at S3 Object Lock.

profile pictureAWS
ESPERTO
kentrad
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande