A team of developers must migrate an application running inside an AWS Elastic Beanstalk environment from a Classic Load Balancer to an Application Load Balancer.
Which steps should be taken to accomplish the task using the AWS Management Console?
A.
1. Update the application code in the existing deployment. 2. Select a new load balancer type before running the deployment 3. Deploy the new version of the application code to the environment
B.
1. Create a new environment with the same configurations except for the load balancer type. 2. Deploy the same application version as used in the original environment. 3. Run the swap-environment-cnames action
C.
1. Clone the existing environment, changing the associated load balancer type. 2. Deploy the same application version as used in the original environment. 3. Run the swap-environment-cnames action
D.
1. Edit the environment definitions in the existing deployment. 2. Change the associated load balancer type according to the requirements. 3. Rebuild the environment with the new load balancer type.
Understand that Beanstalk does not support changing of loader balancer type, that's why we clone an existing environment instead of editing it directly (like D).
Currently, Beanstalk does not support changing of Load Balancer type. If you want to change the Load Balancer type, you need to create a new environment with the desired Load Balancer type.
I see you have made changes to the environment resources out-of-band which is not recommended as it might break the environment like the issue that you are encountering. Therefore, to fix this issue, the only option we have is to create a new environment. <<< This answer from AWS support team link Below
https://repost.aws/questions/QUEemsrTM_TPG3r_HdoG08EQ/how-to-remove-or-change-a-load-balancer-type-with-elastic-beanstalk
Is there even correct answer? For me it looks like it doesn't. B is closes, but 2nd step looks incorrect, since we need to deploy to new version of the app, don't we?
If we clone we also clone the type of load balancer. If we want an Application Load Balancer, we have to create a new environmment with the same configurations, deploy the application that is current running on the classic load balancer then use swap-environment-cnames action to point the same url to the new ALB
c,The Elastic Beanstalk environment is designed to abstract the underlying resources used to run the application. When the load balancer type is changed, the entire environment must be recreated with the new load balancer.
Therefore, to migrate an Elastic Beanstalk environment from a Classic Load Balancer to an Application Load Balancer, the recommended steps are to clone the existing environment and associate it with the Application Load Balancer. After cloning, the same application version as used in the original environment is deployed to the new environment. Finally, the swap-environment-cnames action is run to swap the environment URLs so that the new environment takes over the traffic.
By cloning the existing environment and changing the associated load balancer type, the developers can create a new environment with an Application Load Balancer. They can then deploy the same application version as used in the original environment and run the swap-environment-cnames action to switch traffic from the old environment to the new one.
C is the correct answer here.
Option B is incorrect because creating a new environment is not necessary and can result in additional cost and maintenance overhead.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
xdkonorek2
1 year, 5 months agoCrescentShared
1 year, 6 months agoYanisGTR
1 year, 9 months agoSardor_uz
1 year, 11 months agorcaliandro
1 year, 11 months agoBATSIE
2 years agoMrTee
2 years, 1 month agoSyre
2 years, 1 month agoA_Q
2 years, 3 months agoKrt5894
2 years, 3 months agohb0011
2 years, 4 months agohb0011
2 years, 4 months agoSoMaL69
2 years, 6 months agok1kavi1
2 years, 6 months agok1kavi1
2 years, 6 months ago