Free VPS Amazon Web Services (AWS) Free Tier is designed to enable you to get hands-on experience with AWS Cloud Services. The AWS Free Tier includes services with a free tier available for 12 months following your AWS sign-up date, as well as additional service offers that do not automatically expire at the end of your 12 month AWS Free Tier term.
Free VPS Amazon After creating your AWS account you can use any of the products and services, listed below, for free within certain usage limits.
Free VPS Amazon You can start today and automatically take advantage of the AWS Free Tier by following the steps below:
Select the datacenter where your instance will be created. When you are experimenting with a free VPS, you should choose the datacenter closer to your location.
Use the Elastic Compute (EC2) service
Access the Elastic Compute service. Click on “EC2” in the upper-left corner of the AWS portal page.
Choose base image
Click on big “Launch instance” button. You will see the available instance types. Note: you can upload your own if you need to, but that is another topic.
Click on the “Free-tier only” check box to show the images available for the free micro-instance option we are using.
HVM or PV?
When selecting and instance, pay attention to whether it is an HVM instance or a PV instance. This is usually indicated in parenthesis at the end of the instance name. To understand the difference between HVM instances and PV instances, see the Amazon AWS virtualization types section of the AWS documentation.
The summary is that HVM is probably the best instance type for most users. Choose HVM.
Select instance type
Choose the default instance type, t2.micro, which is eligible for the free tier of service. Then, click on the “Next: Configure Instance Details” button at the bottom left of the page.
Use all the default settings. Click on the “Review and Launch” button.
Launch the instance
Review settings and launch the instance. For now, ignore the security warning. Depending on how you plan to use your instance you may wish to set stronger security setting.
Click on the “Launch” button.
Download private key
You will be asked to select a key pair that the instance will use to identify the legitimate user who connects to it via SSH when it is running.
A key pair consists of a public key that AWS stores, and a private key file that you store. Together, they allow you to connect to your instance securely. The private key file allows you to securely SSH into your instance.1
Choose the “Create a new key pair” option from the menu options, then give the key pair a name.
Then click on “Download Key Pair”. Save the file to your hard drive.
Make a note of the directory in which you chose to store the key pair file because you will need it later. In my case, I put it in my Documents folder so the full path of the file is:~/Documents/Ubuntu-2-keypair.pem.
Finally, click on the “Launch Instances” button.
Secure key pair file permissions
Set permissions for the key. SSH will not allow you to the key pair file unless the file permissions are secure.
Navigate to the file in the File Manager, right-click on the file and select Properties from the drop-down menu. In the properties dialogue box, click on the Permissions tab. Change the user permissions to “Read Only”. Change group access permissions to “None” and Others access to “None”. Then click the “Close” button.
Alternatively, use the terminal and enter the command:
$ cd ~/Documents
$ sudo chmod 400 Ubuntu-2-keypair.pem
After you clicked on the “Launch Instances” button, the instance started launching. To manage instances, click the “view Instance” button.
See the instances you have created in the AWS Console. In my case I have two instances: one I created earlier and the one I created just now, which is initializing.
Wait until the status of the instance changes to “running”, then log into it.
Log in to the VPS
we can log into a running instance using the SSH protocol. SSH comes built-in on Linux and Mac OS X. To access the instance from a Windows PC, install the free Putty program.
To log into the VPS, we need to know the IP address assigned to the instance. Click on the check box next to the instance to view information about it.
In this example, we see the public IP address is: 220.127.116.11. Note that, if we stop this instance and start it again, it will be assigned a different IP address (and DNS name).
Note that the userid configured on the instance by default is ubuntu. You will see a security warning. Ignore it and respond “yes”.
The authenticity of host '18.104.22.168 (22.214.171.124)' can't be established.
ECDSA key fingerprint is cc:94:f4:d6:95:4e:75:aa:f2:86:c6:94:9e:0f:c9:0f.
Are you sure you want to continue connecting (yes/no)?
Now we have access to the Ubuntu Linux Bash shell running on the VPS in Amazon’s datacenter. In future posts we will explore using this VPS to run open-source network simulation software.
Stop the instance
If you want to stop the instance so that you do not consume the free hours provided as part of the Free Tier option, follow the procedure shown below.
First, exit the instance
Now, stop the instance in a way that saves the changes we have made so we can use them when we start it again.
On the Console web page, select the instance we are running and then click on the “Actions” button. Select “Instance State” from the drop-down window and select “Stop”.
Confirm in the pop-up window. Do not worry about losing storage because we did not set up any storage volumes.
Remember, when we start this instance again, we will have to use a new IP address when logging into the instance.