Skip to content

hemu07/Cloud-IaaS-basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

###Cloud-IaaS-basics

  • create a server (EC2 instance) on AWS and deploy an application on it

    • Setup and configured a server on AWS image

    • Configured Firewall rule to open port 22 for your IP address image

    • Login to server as a root user using an SSH client image

    • Created and configured a new Linux user on the Server (Security best practice) image

    • Deploy and run a Java application on Server

    • Installation: image

    • Clone this repo and build the app locally: https://github.com/pmendelski/java-react-example.git image

    • copied the java app jar file to the server image

      image image

      • Run the app on the server image

      image application is ruuning on port 7071

      opening the same port in inbound rules of the security group attached to this instance image

      accessing the app in new tab with public IPv4:7071 or PublicDNS:7071 image image we can see the logs on server image

      Running the app in detached mode image

      image

      Checking the port on which the app is running in detached mode image

      Security best practice is to not run the app/services as a root user, instead create a separate user for each service/app with minimum needed permissions to run the app switch user to demo and public key for the same as we have configured the public key just for the root user. image

      adding the public key to this user in .ssh folder --> authorized_keys file

      image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published