S3
Disable “delete” option for S3 objects in AWS
- Attach policy to your IAM user(s) that Deny s3:DeleteObject action
- Configure bucket policy (Permissions -> Bucket Policy) that will Deny s3:DeleteObject action
For example, bucket policy can look like this:
1 | { |