Amazon Web Services
Amazon Web Services (AWS) provides on-demand cloud computing platforms to individuals, companies and governments, on a paid subscription basis.
Launch an EC2 instance
To process our task, we shall start a micro EC2 instance in AWS console
To start the instance, we go to Console -> Services -> Compute -> EC2 and we click on "Launch Instance". We select Ubuntu Server 16.04 LTS (HVM), SSD Volume Type, choose a micro instance and follow next steps.
We also set a security groups in order to accept requests from the web on port 80 (HTTP) and port 443 (HTTPS). After creation, the instance characteristics are :
Each time an EC2 instance restart, it changes public address IP. This can lead to problems with DNS service when a domain name is set to the old IP.
The best thing is to assign to our EC2 an elastic IP address. More information on elastic IP on https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html
We create and assign an elastic IP to our EC2 which is 54.201.220.59
Storage size
8 GiB
Public DNS
ec2-54-201-220-59.us-west-2.compute.amazonaws.com
Public IP IPv4
54.201.220.59
Key .pem filename
Task_devops.pem
Security groups
Inbound rules
Port
Protocol
Source
80
tcp
0.0.0.0/0, ::/0
22
tcp
0.0.0.0/0
443
tcp
0.0.0.0/0, ::/0
Outbound rules
Port
Protocol
Source
All
All
0.0.0.0/0
Connect to the instance
We can connect to the newly created instance from a Linux based command line interface by using the generated key .pem file ( We are using an Ubuntu 14.04 LTS Laptop)
Assigning a domain name to the server
Each created EC2 instance has a given public DNS which is not often pratical to use (Very long and not easy to remember) In order to have an easy to remember one, we shall assign to the server a small and specific domain name.
For the purpose of this task, we shall use a subdomain of domain name woezzon.com as : task.woezzon.com
Amazon Route 53
To assign a domain name to the server instance, we shall use AWS network service Route 53. Route 53 is a highly available and scalable cloud Domain Name System (DNS) web service. It helps manage domain names and translate them to into numeric IP address.
In our case, we shall link the domain name task.woezzon.com to the server IP address 54.201.220.59
With Route 53, domain names are managed by creating Hosted zone for each domain. The hosted zone will contain all related subdomains informations and record set like Type A IP address, Mail Exchange server (MX) , Cananocial Name (CNAME), etc .. For details on how to assign a domain name to a server, refer to Route 53 documentation https://docs.aws.amazon.com/route53/index.html#lang/en_us
To be sure that the domain name points properly to the good IP address we can check in command line with the dig command :
The output would show something like :
Last updated
Was this helpful?