Deploying the Project/Application

Setting up an Amazon Web Services Account

  • Create EBS Volume
  • Configure Database
  • Deploy Django app

We will be using the AWS console. So you will need to sign up to AWS, make sure you have a credit card and a mobile phone handy. Unfortunately, Amazon requires a credit card to use their service, even if you have AWS Credit.

Once you sign up you login to the AWS Console. It is pretty confusing - and there are lot of things going on.

Go to Account Activity. In here it will give you an overview of the how much you have spent, how much credit you have (if you’ve entered in a voucher), and whether you are eligible for the AWS Free Usage Tier (Good idea to make sure this is in effect!)

To enter in a AWS voucher, under Account go to the Payment Method and Reedem your AWS Credit Coupon there.

Using the AWS site is a bit slow.. hmm.. I wonder what that says about there cloud services?

If you are really paranoid about spending or overspending on AWS then it might be a good idea to set up a Billing Alarm. Despite what the interface suggests, click on Account/Account Activity and click on create Billing Alarm there. However, to enable the Billing Alarm you will first need to go to Account/Personal Information and fill out the security questions. What a hassle. Currently, under AWS Free Usage Tier you get 10 free alarms, try creating one that will email you as soon as you spend 1 penny.

We will be using Amazon’s Elastic Beanstalk services - this will handle the configuration of a number of other Amazon Web services.

It will also run a t1.micro instance, which means that you should be able to try this deployment within the free usage tier that Amazon currently provided. These include:

  • Amazon Elastic Compute Cloud (EC2) - where the web application will run
  • Amazon Simple Storage Service (S3) - where the data for the web application will be stored i.e. the DB backend.
  • along with Amazon Simple Notification Service (SNS), CloudWatch, Elastic Load Balancing and Auto Scaling.

For an overview of these key services and why they are important go to Amazon Getting Started Guide at: http://docs.amazonwebservices.com/gettingstarted/latest/computebasics/web-app-hosting-intro.html

You should check their current policy to make sure you are not going to rack up a huge AWS bill!!

To obtain or create Access Credentials and Key Pairs go to Account/Security Credentials. In here, you will be able to get your Access Key ID (or create a new one), and create a Key Pair for SSH login.

Now follow the tutorial by Amazon:

http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html

Table Of Contents

Previous topic

Working with Cookies in Django

Next topic

<no title>

This Page