This is very straightforward. if you already have one application running on your local system, you can simply port it to AWS using the following steps: -
deploy a new instance of ec2, if you use a free tier, then you can deploy many AWS resources for free, get more information about https://aws.amazon.com/free/ .
install all the necessary s / w, such as Java, maven, tomcat and mysql and everything that your application uses in an Ec2 instance. you can even have a free copy of RDS (Database) at the free level that you can use for your application, instead of having the database installed locally on your application server.
when creating an ec2 server, configure the instance security group correctly for ex 8080 for http and 22 for SSH, 3306 for mysql, etc. (This is important and try to be as restrictive as possible to make it safe from hackers).
create and deploy your application and access it using any REST client, specifying the ip instance number and application number.
AWS has several resources on the Internet, you can refer to https://www.youtube.com/watch?v=oS7VYX7LXUo , which talks about deploying a Java application for AWS.
Let me know if you need any other information.
source share