Access denied when deleting S3 bucket

0

I am taking advanced cloud devops nanodegree on udacity that is based on AWS services. To practice hands-on and work on projects we use cloud gateway to AWS account provided by udacity. We are limited to $25 budget through the nano degree, So we must delete all used resources once finishing the hands-on. I was doing hands-on that deploys webapp to elastic beanstalk and to delete resources, In steps I shoud delete the s3 bucket created for the app, but I could not do so and got this message: "elasticbeanstalk-us-east-id" Do anyone have solution for this?

2개 답변
3
수락된 답변

Either the bucket is not empty or there is a bucket policy preventing deletion.

Please see https://aws.amazon.com/premiumsupport/knowledge-center/elastic-beanstalk-delete-s3/

Why can't I delete an Amazon S3 bucket that Elastic Beanstalk created?

My AWS Elastic Beanstalk application created an Amazon Simple Storage Service (Amazon S3) bucket. Why can't I delete the bucket?

Resolution

When you use an Elastic Beanstalk application to create an S3 bucket, a policy is applied to the bucket that protects it from getting deleted accidentally. To delete the bucket, you need to delete the bucket policy first. For instructions, see Deleting the Elastic Beanstalk Amazon S3 Bucket.

Warning: If you delete the bucket, any other AWS resources or applications that depend on the bucket might stop working correctly.

profile pictureAWS
전문가
Matt-B
답변함 2년 전
profile pictureAWS
전문가
Toni_S
검토됨 2년 전
-2

Empty the bucket first.

profile pictureAWS
전문가
kentrad
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인