Configuring Elastic Beanstalk Default Instance

2

I have two elastic beanstalk environments with similar configurations. Per AWS recommendation, both include two instance types. One environment has t2.micro and t2.small, the other is t3.small, t3.medium. Both environments run the first instance type as the default, with subsequent instances booted being the larger of the two instance types. For my second environment, I would like the default instance type to be set to t3.medium and subsequent instances booted as t3.small. The Web console indicates there is away to specify the order, but I don't seem to be able to do that through either order of instances selection, or dragging the instance tags that appear below the selection box. Is it possible to select or change the default instance orders for the environment? Thank you, Nathan.

asked 9 months ago227 views
1 Answer
2
Accepted Answer

Under Instance types, add types you want, and make sure put the desired type in order, for example, the default is t2.micro, t2.small, if you want to make t2.small as default instance type, you need to change the order to t2.small, t2.micro. Once you made the change, you can click Apply, and in the next page click Confirm.

Otherwise, You can go to your auto scaling groups in the ec2 web console, and select the auto scaling group associated with your Beanstalk environment and click edit in the drop down menu. Once this page opens up, there should be a section called Instance Type Requirements. You can click on the "Override Launch Template" under Instance Type Requirements and select "Manually add instance types". This should show the primary instance type which is currently in use and the additional instance types which you can add or remove. Launch template will only show the primary instance type that the is instance is launched with.

Regarding changing the order in the Beanstalk console, I would recommend going into auto scaling and following the steps mentioned above since this is a more accurate depiction then what the Beanstalk console shows you although you are able to select different instance types.

AWS
answered 9 months 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