QualityWorks
QualityWorks Consulting Group is Southern California’s premier consulting firm for software quality innovation. Established in 2009, QualityWorks has had successful engagements throughout Southern California.
Launching an EC2 Instance on Amazon Web Service
Creating an AWS Account
Creating an EC2 Instance
Be sure to register the account with a credit card and valid address, this is required to access some of the services offered.
If you receive a screen similar to that above when trying to access services, then you need to complete your registration.
Creating an EC2 Instance
Creating an EC2 Instance
Creating an AWS Account
Creating an EC2 Instance
Access Instance via SSH
Creating an AWS Account
Elastic Compute Cloud
1. Login to your AWS account at http://aws.amazon.com/
3. Select Instances under the Instances Tab and click "Launch Instance".
4. Select Amazon Linux AMI 64bit, then configure instance details.
For this tutorial we will use Amazon Linux, however select the AMI you want. Think of AMI as an Operating System.
5. Choose Instance type then click "Next:Configure Instance details"
Here is where you choose the type of Instance you want to launch. This refers to the amount of memory and cpu's a instance has. Think of it as machine performance.
6. Configure your Instance details, then click "Next: Add storage"
Here you can specify the amount of instances you wish to create. You also state how your instance behaves if/when it is shutdown.
7. Add a storage volume, then click "Next: Tag Instance"
Here is where you should specify the type & size of your storage.
You can also add more Volumes. Think of this as your instance hard disk.
Text
8. Enter a name for your instance in the textbox labelled value.
This step is just to give your instance a tag/name. You might want to add some extra tags. Just click create tag. e.g. Description - Tell the purpose of this instance.
9. Add rules
Think of this as a firewall for your AWS Instance. In the screenshot above we are allowing ssh on port 22, http on port 80, https on port 443. Additionally we are allowing TCP connection on port 27017 & 3000, this is because we plan to run mongodb and node apps on our instance.
For rules like http and https you may want to allow access from anywhere instead of My IP.
n.b. if your source says anywhere that means any ip address can connect to your instance. That may cause security problems
Almost Finished!
Double check all your configurations and Launch your instance.
11. Select create a new key pair, name the key pair and download key pair.
Optional Setting an ElasticIP to point to your Instance
n.b. Be careful of where you download this key, you will only be able to download once.
Access Instance via SSH
12. Go to Elastic Ip under Network & Security and click allocate new address.
13. Right click on the Elastic IP and Associate address, left click in the instance text box then select your instance.
14. Click associate. Instance must be running or it will not be displayed in instance text box.
Click
"Associate"
Your have sucessfully associated an ElasticIP with your instance.
Access Instance via SSH
Creating an EC2 Instance
Access Instance via SSH
Access Instance via SSH
Create an EC2 Instance on AWS
chmod 400 <your_private_key> on private key
Give Your Private Key <yourfile.pem> only Read Permissions
You may check the permissions on your file by $ ls -l <yourfile.pem>
$ ssh -i <path to private key> Youruser@YourElasticIP
Run the command below to access the AWS via SSH
NB: Default user is ec2-user
$ ssh -i <path to private key> Youruser@YourElasticIP
Analysing SSH command
NB: Default user is ec2-user
Elastic IP OR Public IP OR Public DNS, either one can be used with this command.
ssh - Command to establish secure shell sessions
-i - option for ssh command to specify private key
Youruser@YourElasticIP - user@hostname
Create an EC2 Instance on AWS
Congratulations
Go to Next Tutorial?
Creating multiple users for anEC2 Instance on AWS
Create an EC2 Instance on AWS
You have successfully created your own Elastic Compute Cloud (EC2) instance on Amazon Web Services (AWS)
By QualityWorks
This tutorial contains how to create an Elastic Compute Cloud (EC2) Instance on Amazon Web Services (AWS).
QualityWorks Consulting Group is Southern California’s premier consulting firm for software quality innovation. Established in 2009, QualityWorks has had successful engagements throughout Southern California.