Setting up Amazon AWS Environment


Introduction

Amazon Web Services (AWS) began offering IT infrastructure services to businesses in the form of web services — now commonly known as cloud computing. One of the key benefits of cloud computing is the opportunity to replace up-front capital infrastructure expenses with low variable costs that scale with your business. Amazon Web Services provides a highly reliable, scalable, low-cost infrastructure platform in the cloud environment.

Location

AWS Management Console

Access and manage Amazon’s growing suite of infrastructure web services through a simple and intuitive, web-based user interface. The AWS Management Console provides convenient management of your compute, storage, and other cloud resources. Figure 1 show the features fund in the AWS Management Console once a user login.

Figure 1: AWS Management Console: Home Page

Login to AWS Management Console

Please click on the either if the two locations shown in the Figure 2 provide the login details.

Figure 2: AWS Management Console: Login locations

In the Figure 3 please provide the following details

  • My e-mail address is: xxxxx
  • I am a returning user and my password is: xxxxx

Figure 3: Sign In or Create an AWS Account

AWS Management Console: Amazon EC2

Amazon EC2 section provide the interface to manage EC2 instances (installation and setting up the operating system environment). In the Figure 4 we can identify 2 main sections as follows.

  • Navigation
  • Amazon EC2 Console Dashboard
Navigation

This section the user will find functionality to manage Amazon EC2 instances. As the first step need to select the Region(datacenter location), the location where the application going to deployed. For example can select Asia Pacific(Singapore) as the region and continue with rest of the activities. Functionality is grouped as follows.

  • Dashboard
  • Scheduled Events
  • INSTANCES
  • IMAGES
    • AMIs
    • Bundle Tasks
  • ELASTIC BLOCK STORE
    • Volumes
    • Snapshots
  • NETWORK & SECURITY
    • Security Groups – Using Security Groups
    • Elastic IPs
    • Placement Groups
    • Load Balancers
    • Key Pairs
    • Network Interfaces
Amazon EC2 Console Dashboard

Based on the selection it will load the respective information falls under each section.

Figure 4: AWS Management Console: Amazon EC2

AWS Management Console: Amazon RDS

Amazon Relational Database Service (RDS) makes it easy to set up, operate, and scale a relational database in the cloud. You can click the button below to launch database instance in minutes with automated backups, turnkey Multi-AZ replication, free monitoring metrics. Amazon RDS gives you access to a familiar MySQL or Oracle database to facilitate compatibility with existing code, applications, and tools.

  • Navigation
  • Amazon RDS Console Dashboard

Navigation

This section the user will find functionality to manage Amazon RDS instances. As the first step need to select the Region(datacenter location), the location where the application going to deployed. For example can select Asia Pacific(Singapore) as the region and continue with rest of the activities. Functionality is grouped as follows.

  • Getting Started Guide – Getting Started Guide
  • RDS Dashboard
  • Databases
    • DB Instances
    • Reserved DB Instances
    • Orderable DB Options
    • DB Snapshots
    • DB Security Groups
    • DB Parameter Groups
    • DB Subnet Groups
    • DB Events

Amazon RDS Console Dashboard

Based on the selection it will load the respective information falls under each section.

Figure 5: AWS Management Console: Amazon RDS

Setting up the database

Please use the following information to login to Amazon RDS instance from our local machine.

$ mysql -u<username> -p<password> -h<xxxxxx.ap-southeast-1.rds.amazonaws.com>
-- user: xxxx
-- password: xxxxx
-- hostname: xxxxxx.ap-southeast-1.rds.amazonaws.com

Next step would be to create the database (eg: elephanti_master) and exit from the instance.


mysql> CREATE DATABASE ;
mysql>..
mysql>..
mysql>quit;

Next transfer the tables to the newly created database on the Amazon RDS instance.


$ mysql -u<username> -p<password> -h<xxxxxx.ap-southeast-1.rds.amazonaws.com> < </path/to/sql_file.sql>;

Configuring the your application

Navigate to the application’s configuration section, eg: config/database.php and update the respective parameters as follows


$db['default']['hostname'] = 'xxxxxxx.ap-southeast-1.rds.amazonaws.com';
$db['default']['username'] = 'xxxxx';
$db['default']['password'] = 'xxxx';
$db['default']['database'] = 'master_db';

AWS Management Console: Amazon ElasticCache

Amazon ElastiCache is a web service that makes it easy to set up, manage, and scale distributed in-memory cache environments in the cloud. It provides a high performance, resizable, and cost-effective in-memory cache, while removing the complexity associated with deploying and managing a distributed cache environment.

  • Navigation
  • My Cache Clusters
Navigation

This section the user will find functionality to manage Amazon ElastiCache instances. As the first step need to select the Region(datacenter location), the location where the application going to deployed. For example select Asia Pacific(Singapore) as the region and continue with rest of the activities. Functionality is grouped as follows.

My Cache Clusters

Based on the selection it will load the respective information falls under each section.

Figure 6: AWS Management Console: Amazon ElasticCache

Connecting to Elastic Cache Cluster

Navigate to the application’s configuration section, eg: config/config.php and update the respective parameters as follows


$config['MEMCACHE_IP'] = "xxxxxxx.cache.amazonaws.com";
$config['MEMCACHE_PORT'] = "11211";

3 Comments

  1. February 28, 2012 at 9:20 am

    Great introduction to AWS. For creating instances in EC2, there is a great web application called CloudFlex that simplifies the process and has a pretty neat layout. You should give it a try!

  2. hayesha said,

    February 28, 2012 at 9:46 am

    Hi Alex,

    Thanks, just went through CloudFlex site, yep I should give it a try.

    Cheers.
    Hayesha

  3. July 10, 2013 at 9:18 am

    Today, most of the business organizations have been hosting their websites through the services obtained by cloud hosting service providers. Cloud hosting considerably lowers the costs, along with saving time and increasing the accessibility of the website. AWS solutions provide significant support in reducing the web hosting expenses by providing a platform for the sharing of resources among different users.


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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: