2 Answers
this query, I too cnnot delete the explicit deny bucket policy applied to the bucket, hence cannot delete the bucket. Pls HELP
You’ll need to do this through AWS CLI using root access keys.
Follow the instructions at https://aws.amazon.com/premiumsupport/knowledge-center/s3-accidentally-denied-access/
IMPORTANT: As mentioned in that article, don’t forget to remove the root profile from AWS CLI.
Okay, so today I went back and replicated the same process I followed during the lab yesterday. As a root user, I created a bucket (no public access) and then added the contradictory policy (Explicit Deny everything for everyone and then additional ALLOW statement for MyS3User). I finished the remainder of the exercise and everything behaved as expected when I logged in as MyS3User (could no longer access the bucket). But when I logged back in as ROOT user to delete the policy I get an "Access Denied" error. Apparently Explicit Deny applies to Root users, too?