aws / aws-toolkit-visual-studio

AWS Toolkit for Visual Studio - a plugin to interact with AWS
https://aws.amazon.com/visualstudio/
Apache License 2.0
111 stars 29 forks source link

Changing Elastic Beanstalk instance type does not work #75

Open CharlesShen opened 4 years ago

CharlesShen commented 4 years ago

Any attempts to change instance type with the AWS Toolkit does not work. After hitting Apply, Elastic Beanstalk goes through its process of instantiating a new instance with the new instance type. However, after that process is done, you'll see that no changes have been made and the newly created instance is the original instance type.

Below is the EB trace when the Apply button is clicked

00 INFO Removed instance 'i-0da72d2f29101a136' from your environment. (Reason: Instance is in 'terminated' state)
2020-04-09 10:21:14 UTC-0700 INFO Adding instance 'i-07aa33b2ea7752ed0' to your environment.
2020-04-09 10:21:14 UTC-0700 INFO Environment health has transitioned from RED to GREEN
2020-04-09 10:21:14 UTC-0700 INFO Added EC2 instance 'i-07aa33b2ea7752ed0' to Auto Scaling Group 'awseb-e-gtrvdupfcm-stack-AWSEBAutoScalingGroup-OX18TICEV0VP'.
2020-04-09 10:20:44 UTC-0700 WARN Environment health has transitioned from GREEN to RED
2020-04-09 10:20:43 UTC-0700 INFO Environment update completed successfully.
2020-04-09 10:20:43 UTC-0700 INFO Successfully deployed new configuration to environment.
2020-04-09 10:20:07 UTC-0700 INFO Created Auto Scaling launch configuration named: awseb-e-gtrvdupfcm-stack-AWSEBAutoScalingLaunchConfiguration-8F09GGO87VV3
2020-04-09 10:19:51 UTC-0700 INFO Updating environment EBLabA-prod's configuration settings.
2020-04-09 10:19:46 UTC-0700 INFO Environment update is starting.

ebconfig.txt image

awschristou commented 4 years ago

I confirmed the newly spun up instance is the same (old) type by checking in EC2. (I went through the repo steps to see if it was only the Beanstalk UI that was not refreshing).

WSB98 commented 3 years ago

Any updates on this issue? I just ran into it when trying to move to a t2.small from t2.micro?

awschristou commented 3 years ago

We are thinking that this would be come something you can only adjust from the Toolkit by re-publishing your application to Beanstalk. Have you tried that? Alternatively, have you tried changing the instance type from the web console?

WSB98 commented 3 years ago

i was able to change the instance type within the auto scaling group and the console took care of the rest. much easier fix than i imagined, but it is really odd that the AWS Toolkit in Visual Studio will let you apply changes, and create a new EC2 instance but when you check instance type after it is deployed it is whatever you had before (in my case t2.micro)