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

asked 10 months ago204 views
2 Answers
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
answered 10 months ago
0

Take a look at S3 Object Lock.

profile pictureAWS
EXPERT
kentrad
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions