EC2 is a part of AWS, allowing users to rent virtual computers to run their own applications. EC2 encourages the scalable deployment of applications b
EC2 is a part of AWS, that allows users to rent virtual computers on which to run your own applications. EC2 encourages scalable deployment of applications by providing a web service through which a user can boot a virtual machine, which Amazon calls an instance, containing any software desired. A user can create, launch, and terminate server-instances as needed, paying by the second for active servers
Click on Create a new instance.
Select the operating system for your EC2 instance.
On the Review page, you'll be asked to create a key pair. If you don't have a key pair, create one and click on Create Key Pair and give it a name and click on the Download button and save it carefully this is how you will be able to access your instance later, if you lose it you won't be able to access your instance.
After the key pair is created, click on Launch Instance.
ssh -i [YOUR KEY PAIR NAME].pem ec2-user@[YOUR PUBLIC IP]
ssh -i ubuntu.pem email@example.com
Now you have a new EC2 instance running on AWS ready to use. But keep in mind that EC2 instances can get pretty expensive to run, depending on the traffic you get, so you should be careful when you use them, and set proper budget notifications and limits in the billing console. If you're not that comfortable with using EC2 and managing all these things, then you can always use the DigitalOcean Droplet to host your VM, where your instance will be charged according to the plan you choose.