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

已提問 1 年前檢視次數 220 次
2 個答案
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
已回答 1 年前
0

Take a look at S3 Object Lock.

profile pictureAWS
專家
kentrad
已回答 1 年前

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

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

回答問題指南