skip to Main Content

I need help with s3 bucket using ,
my Bucket policy for actions is –>

  "Action": [
                "s3:GetObject",
                "s3:DeleteObject",
                "s3:PutObject"
            ]

getting the objects working fine
putting objects working fine

but when i try to delete object or multiple objects with
s3.deleteObject / s3.deleteObjects i get

  Code: 'Access Denied',
      Message: 'Access Denied'

as a response

any one has any idea how can i fix that ???

i tried to make the action "s3:*: to include all actions but i still get the same result

i tried to make a new bucket and still get the same results

2

Answers


  1. Chosen as BEST ANSWER

    After debugging I found that AWS added AWSCompromisedKeyQuarantine to the User since the keys were exposed by fault


  2. Make sure you have Delete permission on the content of the bucket as well (/*):

    {
        "Action": ["s3:DeleteObject"], 
        "Resource": ["arn:aws:s3:::my-bucket/*"], 
        "Effect": "Allow"
    }, 
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search