To see AWS free tier
750 hours Linux/UNIX or RHEL EC2 Micro Instance is free
To check AWS EC2 pricing
Creating New Instances
Login to AWS management console
We can create instances from
EC2 Dashboard > instances
Launch Instance > Create new instances
Choose an AMI (Amazon Machine Image ) for instance
Select the Instance
Type: (T1 micro)
Create the key pair. These key pair are required to login to
the EC2 instance
Continue the next steps and create the instance.
Need to add rules in Security Groups. There will be a
default security group in AWS or there is option to add new security group
We need to add the inbound rules to enable access to the
different ports.
ie – the port numbers 21,22, 80,3306 etc.
By default there will no static IP configured in EC2. The
server will be only accessible using the public DNS name
for eg :
ec2-23-20-98-110.compute-1.amazonaws.com
IF we want to configure a static IP there is option to add ELASTIC
IP in AWS. This is required at the
time of pointing the domain name to EC2 server.
Login to the server
We require the key pair to login to EC2. Download the key
pair to your local computer and authenticate with the key.
The default user of EC2 instance will be “ec2-user”
login method
# ssh -i
/home/domain.pem
ec2-24-25-97-150.compute-1.amazonaws.com
(domain.pem is
key pair name)
Reset the root password using sudo
# sudo passwd root
Enter new password.
By default there will be no software installed in the
server. We need to install the softwares manually. Ie we need to install Apache, PHP, MySQL, FTP
manually.
We have an option to use Amazon RDS(Amazon Relational
Database Service) for databases
http://aws.amazon.com/rds/
# su -
enter the password to switch to root user and install the
required software.