EC2 instance using Amazon SQS queues

Amazon Simple Queue Service (Amazon SQS) offers a reliable, highly scalable, hosted queue for storing messages. Amazon SQS can be used to applications that perform different tasks, without losing messages. Amazon SQS enables users to build an automated workflow. Amazon Elastic Compute Cloud (EC2) is a web service that provides resizable compute capacity in the … Read more

SaaS built using a PaaS (Google App Engine) and using IaaS (Amazon EC2)

SaaS = PaaS + IaaS Tools for Development, Testing and Implementation: * Amazon Web Services (AWS) * Google App Engine (GAE) * Google Chart Libraries * Eclipse IDE VaR Cloud Presentation SVNLabs References: Google AppEngine: http://code.google.com/appengine/ Amazon EC2: http://aws.amazon.com/ec2/ Google Chart: http://code.google.com/apis/chart/ “A lamp does not speak. It introduces itself through it’s light. Achievers never … Read more

JSP S3Upload

JavaScript is good alternative to bypass AWS bucket policies 😉 <%@ include file=”config.jsp” %> <%@page import=”java.util.Calendar”%> <%@page import=”java.util.Date”%> <%@page contentType=”text/html” pageEncoding=”UTF-8″%> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”><head> <title>S3 Upload – JSP Demo</title> <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″> <script src=”sha1.js”></script> <script src=”webtoolkit.base64.js”></script> <script src=”script.js”></script> <script> function uploadS3() { var awsid = ‘<%=awsAccessKey %>’; … Read more

How to Setup Elastic Load Balancing on AWS

How to create subaccounts and share buckets using IAM and CloudBerry S3 Explorer

Note: this post applies to CloudBerry Explorer 2.4.2 and later. As always we are trying to stay on top of the new functionality offered by Amazon S3 to offer the most compelling Amazon S3 and CloudFront client on Windows platform. A few weeks ago Amazon introduced Identity and Authentication Management (IAM) Service. It is a … Read more

Backup mysql database to amazon S3

Below is the simple code to create sql script of database on Amazon EC2 server using “mysqldump”… then upload this sql script to Amazon S3 bucket using command line S3 tool “s3cmd”… <?php $sqlbackup=”/usr/bin/mysqldump -v -u root -h localhost -r /var/www/html/backup/”.date(“Y-m-d-H-i-s”).”_db.sql -pdbusername  databasename 2>&1″; exec($sqlbackup, $o); echo implode(“<br /> “, $o); $file = “/var/www/html/backup/”.date(“Y-m-d-H-i-s”).”_db.sql”; $bucket = “s3bucketname”; exec(“/usr/bin/s3cmd  put â€“acl-public â€“guess-mime-type  â€“config=/var/www/html/.s3cfg   “.$file.”  s3://”.$bucket.”  2>&1″, $o); echo implode(“<br /> “, $o); ?> 0 */12 * * * env php -q /var/www/html/s3bkup/s3bkup.php > /dev/null 2>&1 (per 12 … Read more

Amazon EBS

Amazon Elastic Block Storage (EBS) We can use Amazon EBS just like as the CD/DVD/Pen Drives on our PC/Laptops Servers for backup or data transfer… EBS can attach to an EC2 instance, we can use EBS to save work files in it.. for it we have to mount it in the instance after backup we … Read more

Configure Amazon EC2

1.Boot 2 linux servers on EC2 2.Assign elastic IP to each of them 3.Register a domain (eg svnlabs.com) 4.On the domain settings – create 2 host records – ns1.svnlabs.com and ns2.svnlabs.com and point each record to each of the elastic IPs. 5.On your 2 nameserver instances – create dns zone for ns1. and ns2 respectively … Read more