You have just deployed onto the AWS Elastic Beanstalk environment. Let’s assume that your manager has just informed you that a change to the application is required by the business owner, and you need to make a code change, build a new WAR file and push that to the Beanstalk application environment.
AWS Elastic Beanstalk has a rich variety of ways you can do this, but if you are new to Elastic Beanstalk you are likely tempted to use the manual method. While this might work for low volumes of change, you also need to consider that documentation will need to be written so that any operations staff can correctly apply the updates.
A preferred method would be to automate the deployment, but how would you automate deployments to Elastic Beanstalk?
To solve this problem we move to the command line and use a tool specifically created to automate the deployments of Beanstalk applications.
mvn package
cd target\\travelbuddy
eb init --profile devaxacademy
eb deploy --profile devaxacademy
Now, wait for the deployment to complete. You can monitor the progress in the terminal window as the artefact is uploaded, and then Elastic Beanstalk updates the environment. You will also see the progress of the update reflected in the AWS Elastic Beanstalk console, once the upload is complete. When the update finishes, verify the change you made to the index.jsp page is now present in the publicly-visible website.