How to setup Amazon EC2 with Ubuntu 16.04 Instance

Pre-Requisites:

  • A valid Amazon Web Services (AWS) account
  • Any browser with internet facility
  • System Administrator skills
  • Basic Linux command executing skills

Login to AWS Console:

Once you ready with above prerequisites, please log in to AWS Console.

After logging in find EC2 under services menu, where you can find ‘Launch Instance’ button. Click the launch button and it has instance creation of 7 steps.

Step-1

Select Ubuntu 16.04 Server, here you can find many servers eg. Amazon linux, Ubuntu, Windows with the range of versions, varieties, free and paid servers. As per our blog, we choose Ubuntu 16.04 Server with free tier eligible.

Step-2

Choose instance type, which says information about RAM size, storage, CPU core, network performance.
Caution: Changing from free tier eligible to another may be charged.

Step-3

More configuration settings of instance type.  If you go with 1 instance, you better leave it by default.

Step-4

Options for change your disk storage size and add new storage disk

Step-5

Tags used for organize for your resources using key and value.
Info: For free tier eligible user better leave it by default, otherwise it may additional cost based on no of tags.

Step-6

You can create Inbound security rules. eg. HTTP, All TCP, SMTP, HTTPS so far (as per your requirement.)
Alternatively, you can update your rules at security groups, once instance created.

Step-7

Final review window. It shows major configuration settings for your brief view.

Instance Creation - Download key pair:

This is for used authentication when you need to connect created instance. so provide any key pair name and download and save it safely.

Instance Launching.

Finally, your Instance launching…, it may take 5- 10 min. You can know instance status and instance ID, Public DNS and Public IP so far by selecting particular instance.

Connect your instance of Ubuntu 16.04 server via SSH

$: chmod 400 nathanaws.pem

$: ssh -i “nathanaws.pem” ubuntu@ec2-54-202-38-94.us-west-2.compute.amazonaws.com

That is it. Thank you.

how can we help you?

Tell us about your requirement and we’ll offer you the best possible solution. Get in touch now.