Deploying Applications into Virtual Machines
Installing Some Java application on IaaS (EC2)
- Lets create an EC2 instance with ubuntu os
- executed the following commands
sudo apt update
sudo apt install openjdk-11-jdk -y
wget https://referenceapplicationskhaja.s3.us-west-2.amazonaws.com/spring-petclinic-2.4.2.jar
java -jar spring-petclinic-2.4.2.jar
* In this approach:
* OS updates: our responsibility
* Platform Update (JDK): Our responsibility
* Application Update (New Version): Our responsiblity
Installing Some Java application on PaaS (Elastic Beanstalk)
- In Elastic Beanstalk we are responsible for Application Versions
- Os updates and platform updates are managed by AWS
- Note: If you want any custom platform, it is recommended to use Docker.