There are so much information out there on cloud computing and how to deploy app to aws elastic beanstalk, however, there is very little in terms of how you can get started with your first step.
I've seen many students and professionals struggling and being overwhelmed when they're beginning to pursue their data cloud computing career.
In this article, we will cover, how to deploy a web application to AWS using Elastic Beanstalk.
- AWS Account
- DOWNLOAD THIS: WAR file containing the web application code
Access Elastic Beanstalk service from AWS Management Console
On the AWS Management Console page type
elastic beanstalkin the
Find Servicebox and then select
If this is your first time accessing Elastic Beanstalk, click the
- Enter an
Platform, click the dropdown for
Choose a platform. Select
Application code, select
Upload your code. Click the
Upload your code, make sure
Local fileis selected for
Source code origin.
Choose Fileand upload the downloaded WAR file (link above in pre-requisites),
Create applicationbutton. Important: It will take about 10 minutes for your application to be created. There are several resources that need to be spun up to support your application. Your application is created once you see a green check mark and the
Healthof your application is
- After the application is created, copy the application’s URL. Important: The URL can be found on the top of the page, to the right of your application’s name.
Test the deployed web application in a browser
Inspect the EC2 instance created for you
Navigate to the EC2 console and inspect the instance that was created for you. The instance has the same name as your application. You can administer and manage this EC2 as if you created it yourself.
- Cleanup and delete resources
To clean up the resources to avoid recurring charges, navigate back to the Elastic Beankstalk console.
Select your application.
Actionsbutton in the upper-right hand corner.
Enter the name of the environment to be deleted.
- Click the
- After the application is terminated, you will be brought to the main page for the application.
- Click on the
Actionsbutton in the upper right-hand corner.
- Enter the name of your application.
- Click the