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
asked 6 years ago1542 views
1 Answer
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
answered 6 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions