Amazon Web Services : RHEL 6.4 Setup

Although most of my test servers are registered with RackSpace, I thought that it would be a good idea to review AWS for some of my less technical colleagues that are interested in gently stepping into the Cloud Server arena. AWS offers a free tier service for 12 months using the t1.micro instance for 750 hours. However, a credit card will be required to setup an account so they may easily charge you if you decide to upgrade to another service level. Although this straightforward 25 step process will help you get up running with a RHEL 6.4 server, you should read the AWS documentation and FAQs to understand how the system works and pricing levels.

1. Go to the Amazon website and click “Get Started for Free“,

  http://aws.amazon.com/free/

aws12. Create a new User Account

aws2

3. Setup Login Credentials : Passwords should consist of letters, numbers and special characters.

aws3

4. Add Contact Information

aws45. Credit Card Information

aws5

6. Verify Account through Cell phone call-back

aws6

7. Select Free AWS Support Plan

aws78. Click “Launch the AWS Management Console

aws89. Click “Sign in to the AWS Console

aws9

10. Login with the email/password account you created

aws1011. In the Console, click “EC2 Virtual Servers in the Cloud

aws1112. Click “Launch Instance

aws1213. Select the Image you want to create,

aws-1

14. Choose the Free instance type, t1.micro,

aws14

15. No detail changes should be necessary. Notice a dynamic public IP will be assigned,

aws15

16. No additional storage is needed for your lab machine,

aws-217. Tag instance could be added but not needed,

aws17

18. IMPORTANT : Make sure you select “My IP” as the only machine that can access your new virtual server so it will not be open to the public Internet. If your home ip changes, you may need to change this every so often from within the console or you could add a range of addresses, like a /24. For example, if your ip address was 192.168.100.50, you could add 192.168.100.0/24.

aws-3

19. Review and click “Launch“,

aws-4

20. A Pop-up window will ask you to create a new Key pair. Give it a name and download the file.

aws-5

21. Once it has completed, click “View Instances

aws-6

22. Select the instance and click “Connect

aws-7

23. From the Pop-up window you will see the instructions on how to ssh into the server

aws-824. Notice in this case, the ip address is shown as 54.201.142.230. This will change each time you stop/start the instance. Locate the .pem file, set the correct permissions and ssh into the server using the default ec2-user account,

[root@localhost ~]$ ls -l redhat6.pem 
-rw-rw-r--. 1 root root 1696 Jan 15 08:48 redhat6.pem

[root@localhost ~]$ chmod 400 redhat6.pem 

[root@localhost ~]$ ls -l redhat6.pem 
-r--------. 1 root root 1696 Jan 15 08:48 redhat6.pem

[root@localhost ~]$ ssh -i redhat6.pem ec2-user@54.201.142.230

The authenticity of host '54.201.142.230 (54.201.142.230)' can't be established.
RSA key fingerprint is 45:c2:96:dc:c5:e6:37:cf:5f:b4:c6:e2:27:51:44:9b.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '54.201.142.230' (RSA) to the list of known hosts.

[ec2-user@ip-172-31-1-100 ~]$

25. By default the root password is not setup and the ec2-user has full permissions through the sudoers file. If you would like to set the password for the root account, follow these commands,

[ec2-user@ip-172-31-1-100 ~]$ sudo su root
[root@ip-172-31-1-100 ec2-user]# passwd 
Changing password for user root.
New password: 
Retype new password: 
passwd: all authentication tokens updated successfully.
[root@ip-172-31-1-100 ec2-user]# exit
exit
[ec2-user@ip-172-31-1-100 ~]$ su -
Password: 

[root@ip-172-31-1-100 ~]#

Now you have full access to an AWS Cloud Server running RHEL 6.4

[root@ip-172-31-1-100 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.4 (Santiago)

 

One thought on “Amazon Web Services : RHEL 6.4 Setup”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s