Can't delete Enviroment or Application

0

Hi,
One morning my environment had 0 instances running, I created a new enviroment and reDeploy my application to it and now I have my application running fine, But when I'm trying to delete the old environment that has zero instances I'm getting errors:

  • Stack deletion failed: The following resource(s) failed to delete: [AWSEBSecurityGroup, AWSEBLoadBalancerSecurityGroup].

  • Deleting security group named: sg-8d849bf4 failed Reason: resource sg-8d849bf4 has a dependent object (Service: AmazonEC2; Status Code: 400; Error Code: DependencyViolation; Request ID: 92ac8aa2-2fbd-480f-9fe2-e6d0f56a5c2d)

  • Deleting security group named: awseb-e-xcxnatm49p-stack-AWSEBSecurityGroup-1SI6SGG0HPPWT failed Reason: resource sg-35839c4c has a dependent object (Service: AmazonEC2; Status Code: 400; Error Code: DependencyViolation; Request ID: 504ecd86-ec3c-428e-b99a-55510cb0d807)

what is wrong ?

Thanks,

Edited by: JRozz on Jun 3, 2018 1:34 AM

JRozz
質問済み 6年前1558ビュー
1回答
0

Issue could be that you might have associated the security group sg-8d849bf4 to another resource, for example if a new instance is launched with this security group, in that case stack deletion fails. You can find the resource and manually remove the association or you can skip the resource and try deleting it again.

Just a quick note:
Modify the resources in your environment only by using Elastic Beanstalk. If you modify resources using another service's console, CLI commands, or SDKs, Elastic Beanstalk won't be able to accurately monitor the state of those resources, and you won't be able to save the configuration or reliably recreate the environment. Out-of band-changes can also cause issues when terminating an environment.

Ref - https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.managing.html

AWS
回答済み 6年前

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

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

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

関連するコンテンツ