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

gefragt vor einem Jahr220 Aufrufe
2 Antworten
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
beantwortet vor einem Jahr
0

Take a look at S3 Object Lock.

profile pictureAWS
EXPERTE
kentrad
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen