Tag Archives: SFTP

Amazon AWS Getting Started

facebooktwittergoogle_plusredditpinterestlinkedintumblrmail

Here we will go over the basic steps that we followed during the process of getting started and setting up our Amazon web server. Here are the first few steps that we followed:

  1. Create an AWS Account – follow this link to create your AWS account, that is the first step in getting started on Amazon AWS. If you already have an account skip to the step #2. Following is some list of services you can signup for – figure out which services is required for your application:
    Amazon AppStream Amazon Simple Queue Service (SQS)
    Amazon CloudFormation Amazon Simple Storage Service (S3)
    Amazon CloudFront Amazon Simple Workflow Service (SWF)
    Amazon CloudSearch Amazon SimpleDB
    Amazon CloudWatch Amazon Virtual Private Cloud (VPC)
    Amazon DynamoDB Amazon Workspaces
    Amazon Elastic Compute Cloud (EC2) Auto Scaling
    Amazon Elastic MapReduce AWS CloudHSM
    Amazon Elastic Transcoder AWS Data Pipeline
    Amazon ElastiCache AWS Direct Connect
    Amazon Glacier AWS Elastic Beanstalk
    Amazon Kinesis AWS Import/Export
    Amazon Mechanical Turk AWS OpsWorks
    Amazon Redshift AWS Storage Gateway
    Amazon Relational Database Service (RDS) AWS Support (Basic)
    Amazon Route 53 Elastic Block Store (EBS)
    Amazon Simple Email Service (SES) Elastic Load Balancing
    Amazon Simple Notification Service (SNS) Product Advertising API
  2. The basic foundation services Amazon AWS provides are: Compute, Storage, Database and Networking.
  3. For our application purposes we figured we will need to use 2 of AWS services, Amazon Elastic Compute Cloud or EC2 and Amazon Simple Email Service (SES).
  4. Let us go over how to get started with Amazon EC2 in this article and we can go over the SES in next article.
  5. Once you have decided that you need to go with EC2 figure out which version of EC2 do you need to use, Linux or Windows?
  6. We have a LAMP application so we needed to go with EC2 Linux instance.
  7. Here are some pre setup steps to get Started with Amazon EC2: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/get-set-up-for-amazon-ec2.html
  8. Here are the steps to launch a linux Amazon EC2 instance : http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html
  9. Here is how you can install LAMP web servers on Amazon Linux EC2 instance: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
  10. We needed to install phpmyadmin as our outsourcing team was comfortable using that – I would not recommend to open up your mysql on web but temporarily we did open it. Here is how we go the phpmyadmin working: http://geekact.com/2115/install-phpmyadmin-on-vps-or-amazon-ec2-and-vpc
  11. You might need to tweak your .htaccess file in phpmyadmin directory to get it working.
  12. Here is how you can transfer files to Amazon EC2 Linux instance using SCP: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html#AccessingInstancesLinuxSCP
  13. You can also use SFTP to transfer the files. For that you need to open the SFTP port, you can refer to the link in #7 to see how can you do that. Then use the .pem file you downloaded – you can add that to your preferences on your FTP client. For example, with Filezilla I add that file to preferences-> SFTP -> Add Keyfile-> upload the pem file here.
  14. Here is how you can use WinSCP to copy the files: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html#Transfer_WinSCP

The above are basic steps that you would follow in order to create and Amazon EC2 Linux instance, install the LAMP server and transfer your application files. If you need to work with a Windows instance please follow the link: http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/EC2Win_GetStarted.html

If you are planning on using the Amazon Free Tier, and want to know more about it please refer to: http://docs.aws.amazon.com/gettingstarted/latest/awsgsg-intro/gsg-aws-free-tier.html

Hope this article helps you get setup with Amazon AWS. In the next article we will go over SES setup.