So you have set up a test elastic beanstalk environment because you don’t want to put at risk your production elastic bean.
You don’t want to pay for the time you’re not using it, and there’s no freaking “Pause Environment” option.
all you can do is “Terminate Environment”? but then to crete the damn environment it takes forever to configure (if you’re using the dashboard), so we don’t want to do that.
If you try to terminate the associated EC2 instance, the Elastic Beanstalk environment will automatically provision a new machine for you, so that doesn’t work. What do you do?
Open the Elastic Bean environment you want to pause and go to “Configuration”
On the Scaling card, click on the Gear icon to change its settings
in the “Auto Scaling” options, set the “Minimum instance count” to 0, and the “Maximum instance count” to 0
Hit “Apply”
Wait for your environment to apply the new configuration
Now your health status has switched to gray. It’s now paused and you won’t be paying for the test ec2 instance while you’re not working on it.
If you are curious and you check the ec2 instances associated to the environment, it/them should be terminated now, but now the environment won’t try to provision new ones.
Savings in your pocket. Cheers.