Updating Elastic Beanstalk Configuration: Java 7 to Java 8 with Tomcat 8.5

Updating Elastic Beanstalk Configuration

Prev Question Next Question

Question

Your team has configured an environment in Elastic beanstalk using the following configuration. Java 7 with tomcat 7 They now want to change the configuration to Java 8 with Tomcat 8.5

How can they achieve this in the easiest way possible?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - A.

This is mentioned in the AWS Documentation.

Please refer to page 523 on the below link.

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/awseb-dg.pdf

Options B, C and D are incorrect because they need extra or unnecessary work and are not as easy as option A.For more information on using Elastic beanstalk configuration changes, please visit the following URL-

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.platform.upgrade.html
To change configuration options on a running environment (Elastic Beanstalk console)

(Open the Elastic Beanstalk console.
"Navigate to the management page (p. 73) for your environment.
choose Configuration.

Find the configuration page you want to edit:

‘+ Ifyou see the option you'e interested in, or you know which configuration category it's in,
‘choose Modify in the configuration category for it.

‘+ To look for an option, turn on Table View, and then enter search terms into the search box. AS
you type, thelist gets shorter and shows only options that match your search terms.

‘When you see the option you're looking for, choose Modify in the configuration category that

contains it
CConiguration overview cancel | Review.
[ad
category options
log:
somvare Rat logs sabes
‘Leg streaming aisabied
nn tog ooup logsvean roup/aniistedeanstaode-envenwrornente
- ° biank">/aws/etasticbeanstaik/Node-envienvironment-heaith tog

The easiest way to change the configuration in Elastic Beanstalk from Java 7 with Tomcat 7 to Java 8 with Tomcat 8.5 is by using the "Change configuration" feature in Elastic Beanstalk.

Option A, changing the configuration using the AWS console, is possible but may require additional steps to ensure the correct version of Java and Tomcat are used together.

Option B, creating a new application revision, may also work but it would require deploying the new revision and possibly reconfiguring the environment manually.

Option D, migrating the environment to OpsWorks, is not relevant to this task since it involves using a different service.

To use the "Change configuration" feature, follow these steps:

  1. Log in to the AWS Management Console and navigate to the Elastic Beanstalk console.

  2. Select the environment that needs to be updated.

  3. In the Environment Overview page, click the "Configuration" button.

  4. In the "Software Configuration" section, click the "Edit" button.

  5. In the "Base configuration" section, select "Java" version "8" and "Tomcat" version "8.5" from the drop-down menus.

  6. Click "Apply" to save the changes.

  7. Elastic Beanstalk will now create a new environment with the updated configuration. Once the new environment is ready, you can swap it with the old environment to complete the update.

  8. To swap the environments, go back to the Environment Overview page and click the "Swap environment URLs" button.

  9. Select the new environment from the drop-down menu and click "Swap environments".

  10. Elastic Beanstalk will swap the URLs between the two environments, making the updated environment the live one.

By using the "Change configuration" feature in Elastic Beanstalk, the team can update their environment to use Java 8 with Tomcat 8.5 with minimal disruption and manual configuration.