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 年前1555 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则