• Schedule
  • Videos
  • About
  • Sponsors
  • News
  • Sessions
  • Attendees
  • Directions
  • FAQ
  • Contact Us
DrupalCamp LA 2011

Drupal on the Cloud

Note: this is an archived site. Visit us at http://ladrupal.org.
33
Sign In
  • amazon ec2 aws
  • Cloud
  • hosting
  • Intermediate
  • Site Building
Logistics
Day: 
Saturday
Time: 
10:00a
Room: 
Moss Cove A (70)
Duration: 
One hour
Link: 
screencast

There’s a lot of options for hosting your Drupal site, but a lot of them are too restricted or just not setup right for Drupal. If you want a flexible and powerful host that you have full control over, then you may be interested in using Amazon’s EC2 cloud hosting. In this session, I’ll go through how to deploy your own hosting server and setup a standard hosting environment. I’ll be covering:

  • Instance types
  • Pricing
  • Reserved Instances
  • Security Groups
  • Elastic Block System
  • AMI Selection
  • SSH
  • LAMP Setup
  • E-mail
  • Backups
  • Changing instance types
  • Login to post comments

Comments

Great presentation

Submitted by dankessler on Sat, 2011-08-06 13:03.

Any chance you will share your nifty backup script?

  • Login to post comments

Sure, here’s it with

Submitted by pwall on Wed, 2011-08-17 17:41.

Sure, here’s it with placeholders for the keys, and a reference to the installed AWS SDK for PHP (http://aws.amazon.com/sdkforphp/).

<?php
require_once ‘/usr/share/php/AWSSDKforPHP/sdk.class.php’;

// Connect to EC2
$backup_retention = strtotime(’-7 days’);
$key = “XXXXXXXXXXXXXXXXXXXX”;
$secret_key = “XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX”;
$ec2 = new AmazonEC2($key, $secret_key);

// Backup Volumes
$response = $ec2->describe_volumes();
if ($response->isOK()) {
foreach ($response->body->volumeSet->item as $volume) {
$response = $ec2->create_snapshot((string) $volume->volumeId, ‘backup’);
}
}

// clear any snapshots that were auto created
$response = $ec2->describe_snapshots(array(
‘Filter’ => array(
array(‘Name’ => ‘status’, ‘Value’ => ‘completed’),
array(‘Name’ => ‘description’, ‘Value’ => ‘backup’),
),
‘Owner’ => ‘self’,
));
if ($response->isOK()) {
foreach ($response->body->snapshotSet->item as $snapshot) {
$backup_date = strtotime($snapshot->startTime);
if ($backup_date < $backup_retention) {
$response = $ec2->delete_snapshot((string) $snapshot->snapshotId);
}
}
}

  • Login to post comments

About pwall

Full Name Patrick Wall

Company KWALL

Link to web site http://www.kwallcompany.com

Interest Drupal Service Provider

View full user profile

Attendees

Filter Sessions

  • All Sessions
  • Your Picks
  • Beginner Track
  • Business Side
  • Code & Development
  • Design & Usability
  • Drupalchix
  • Performance and Scalability
  • Showcase & Strategy
  • Site Building
  • Presenters (must read!)

Become a Sponsor

Attendees

View All

Drupalchix Information

View all Sponsors

  • News
  • FAQ
  • About LA Drupal
  • Become a Sponsor
  • Twitter
Designs by RomyRomy and This By Them. Themed by Media Done Right and the members of LA Drupal. Folk Font (cc 2.5) by Marcel Magalhaes.
Powered by Drupal | Copyright © 2011-2022
Graciously hosted by SoftLayer
LA Drupal on Facebook LA Drupal on LinkedIn LA Drupal on Twitter