How to easily create VPS on Amazon Web Services (AWS) EC2

HowAWS

In this how-to, we will show you how to create a VPS on Amazon Web Services (AWS) EC2. If you are looking to create VPS on Google Cloud Platform (GCP) then click here.

Let’s get started. Jump to video tutorial

  1. Go to AWS
  2. Click on Sign in to the console from the right top corner
  3. If you are seeing Create an AWS account then click on it and from the next page click on Sign in to an existing account
  4. Enter Root user email and password and log in
  5. If you are using it the first time then you will have to set up billing also, to set up billing click on your name then My billing dashboard from the right top corner then from the left menu click on the Payment method and then Add a card and activate billing
  6. Then Click on Services from the left top corner and from Compute section click on EC2
  7. Then select the region where you want to create VPS. Click on Location from the right top corner and select a preferred location
  8. From the left side menu, under the Network & Security click Key Pairs
  9. Then click on Create Key Pair, enter a name for the key pair and click on Create
  10. Once you will click on Create it will create and download a file to your computer. Keep this file safe as you will be using this to access your VPS
  11. Then from the left side menu, under Instances click on Instances and then click on Launch Instance
  12. Search CentOS in the Amazon Machine Image page and from the left menu click on AWS Marketplace and select CentOS. Make sure you check the image price below the image name. Click Select and then Continue
  13. Then select the Instance Type, how much CPU, memory you want. Then click on Next: Configure Instance Details
  14. In the configure instance page change if you want to change something else keep it default then click on Next: Add Storage
  15. In the storage page, enter your required storage size, type etc and click on Next: Add Tags
  16. If you want to add tags then you can otherwise keep it empty and click on Next: Configure Security
  17. In the security group setting, let it be create a new security group or you can select an existing security group. You can add rule here if you wish or keep it default then click on Review and Launch
  18. On the review page, check whatever you entered is fine or not then click on Launch
  19. Once you click on Launch, it will open a modal and ask you to select key pair. Select the key pair you created before, acknowledge and click on Launch Instances
  20. It will create the instance and show you Launch Status. Click on View Instances in the right bottom corner
  21. It will show you all VPS instances
See also  How to create VPS on Google Cloud Platform in 5 mins

Done. You have successfully created a VPS on AWS

Now how to access it?

  1. Click the checkbox of the instance you want to connect. Then click on Connect. If connect button is not visible then click on Action then Connect
  2. Then from SSH Client tab copy the ssh command
  3. Open terminal on your computer and change directory to where you downloaded the key pair file and paste the command and press enter to connect
  4. It will give you error – bad permission. Run this command to change permission chmod 400 key_pair_filename
  5. Then rerun the previous ssh command and it will connect to the VPS

You don’t have to change directory if you can specify the path of the downloaded file in the ssh command

Not able to understand? Watch the YouTube tutorial instead

Create VPS on Amazon Web Services – YouTube

See more:

Leave a Reply

Your email address will not be published. Required fields are marked *