Skip to content

Elastic Beanstalk environment stuck terminating for 12+ hours

0

My Elastic Beanstalk environment 'BarterUnity-dev-env' in us-east-2 region has been stuck in 'Terminating' status for over 12 hours. I initiated termination to reduce costs, but the environment won't complete termination. This is preventing me from achieving cost savings and I may be getting charged for resources that should be terminated.

Business Context: If I am able to reduce costs to a more startup-friendly budget, I would like to keep the site running on AWS. Otherwise, I am shutting it down to migrate to a more cost-effective cloud service.

Please help complete this stuck termination so I can either properly shut down or explore more affordable AWS options for my startup. And also note, I am not a technical person so I would greatly appreciate as much detail as possible to help.

Environment Details: Environment Name: BarterUnity-dev-env Region: us-east-2 Status: Stuck in "Terminating" for 12+ hours Issue: Termination process not completing

asked a year ago235 views

1 Answer
0

When an Elastic Beanstalk environment gets stuck in the "Terminating" state for an extended period, it's typically due to underlying resources that can't be properly deleted. This is a known issue that can happen with Elastic Beanstalk environments.

Here's what you can do to resolve this situation:

  1. Check the CloudFormation stack: Elastic Beanstalk uses CloudFormation to manage its resources. When an environment gets stuck, the associated CloudFormation stack might also be stuck.
  • Go to the AWS CloudFormation console
  • Look for a stack with a name that includes "BarterUnity-dev-env"
  • If you find it, try deleting this stack manually
  1. Force delete the environment: If the environment remains stuck, you can try to force delete it using the AWS CLI or AWS Management Console.

  2. Check for stuck resources: Sometimes specific resources like EC2 instances or load balancers can get stuck in a "shutting down" or similar state. You might need to:

  • Check the EC2 console for any instances related to your environment
  • Look for load balancers, security groups, or other resources that might be associated with your environment
  • Manually terminate any stuck instances using the force option if necessary
  1. Contact AWS Support: If you've tried the above steps and the environment is still stuck, reaching out to AWS Support would be your next best option. They have tools to help resolve stuck resources that aren't accessible to customers.

Regarding costs: While your environment is stuck in "Terminating" state, you generally won't be charged for the EC2 instances that have already shut down, but you might still incur charges for other resources like EBS volumes or Elastic Load Balancers that haven't been fully terminated.

For your startup's cost concerns, once this issue is resolved, you might want to explore:

  • AWS Free Tier options
  • Reserved Instances for predictable workloads
  • AWS Savings Plans
  • Elastic Beanstalk with smaller instance types
  • Auto-scaling configurations that scale down during low-traffic periods

These options could help make AWS more affordable for your startup while still providing the reliability and scalability benefits of the platform.
Sources
Instance stuck in "shutting down" state | AWS re:Post
ElasticBeanstalk stuck | AWS re:Post
After deleting Elastic Beanstalk application, environment still remains | AWS re:Post

answered a year 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.