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.

질문됨 10달 전254회 조회
1개 답변
2
수락된 답변

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
답변함 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인