Can't delete Beanstalk environment due to security group's dependencies

0

I configured an Elastic Beanstalk environment + app with the bespoke interface (no cloudformation) utilizing only a single EC2 instance. It worked, but when I used "Actions > Rebuild environment" for some reason it stopped working and remained in an "invalid state", so I can't restart the app or rebuild it again.

I was able to stop and terminate the associated EC2 instance, but can't terminate the environment because it says that the associated Security group "has a dependent object". At this point, I tried to change the Security group in Beanstalk's configuration, but it's not possible because the Environment is in an invalid state.

Then tried to directly delete the security group, but that's not possible because "1 network interface associated. Delete the network interface, or associate with a different security group". In the end, the only available action was removing all the inbound/outbound rules.

So I tried to detach, and disassociate the network interface, but it responds "You do not have permission to access the specified resource.", and I logged in with the root account too. The network interface is associated with the default SG too. At this point, I don't know anymore what to try.

2개 답변
1
수락된 답변

Hi There

Please check this support article https://aws.amazon.com/premiumsupport/knowledge-center/elastic-beanstalk-deletion-failure/

Specifically, make sure you are following the instructions for finding any dependencies on the SG (Step 4)

Also, can you clarify what you mean by

I configured an Elastic Beanstalk environment + app with the bespoke interface (no cloudformation)

Have you checked the CloudFormation console for any EB stacks?

profile pictureAWS
전문가
Matt-B
답변함 2년 전
profile picture
전문가
검토됨 5달 전
0

Thank you, it worked. I still have a ghost security group but I've been able to clean EB and CF.

답변함 2년 전

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

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

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

관련 콘텐츠