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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ