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
preguntada hace 6 años1558 visualizaciones
1 Respuesta
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
respondido hace 6 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas