Elastic Beanstalk without Elastic Load Balancer

元气小坏坏 提交于 2019-11-30 04:11:18

Since July 2013 Elastic Beanstalk supports "single-instance" environments that have a single container instance running without a load balancer. Existing environments that are set up using "load balancing environment" can be switched to "single instance" and vice versa.

Prior to this it was not possible to remove the load balancer and have Elastic Beanstalk still work correctly. The load balancer is an integral part of the way that Elastic Beanstalk works in "load-balancing environment" configurations.

In the new Elastic Beanstalk interface I noticed the option to create my environment as a single instance.

I tried it out and, as one might expect, it didn't create an Elastic Load Balancer. Hooray!

The options are described in the AWS EB documentation. At first I recreated the environments I don't need to balance automatically, but apparently you can even switch environment type on the fly.

From command line you can do it like this

eb create -s

Note When activating the single instance mode (-s switch) neither the load balancer nor the auto scaling group is created

An alternative approach is to create a worker environment either through the console

or through CLI

eb create -t Worker

In a saved configuration, or module-specific env.yaml, use this :

OptionSettings: aws:elasticbeanstalk:environment: EnvironmentType: SingleInstance

To create a single-instance EB environment.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!