An error occurred (AccessDenied) when calling the DeleteBucket operation: Access Denied

Question:

An error occurred (AccessDenied) when calling the DeleteBucket operation: Access Denied

remove_bucket failed: s3://elasticbeanstalk-us-east-2-719330736384/ An error occurred (AccessDenied) when calling the DeleteBucket operation: Access Denied

Answer:

Elastic Beanstalk Bucket policies by default denies deletion.

Go to the bucket’s policy (bucket –> properties –> permissions –> edit bucket policy)

Then find this statement

Change the Effect from Deny to Allow.

Save the change to the Bucket Policy.

Try deleting again.

Leave a Reply