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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则