amazon-web-services

Upload image using Amazon S3

Hi, I need to upload a given image using Amazon S3 I have this PHP: <? $uploaddir = 'images/'; $file = basename($_FILES['userfile']['name']); $uploadfile = $uploaddir . $file; if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { echo "Data Uploaded Successfully"; } else { echo "ERROR"; } ?> but it gives me...

Amazon S3 Redirect on Access Denied

Is there some way to redirect a user that reaches gets the AccessDenied-error on a bucket? Some bucket-config maybe? Are there any sort of redirect features at all for s3/cloudfront? I thought it might be a way to solve the problem with not being able to have zero-keys so that you can show your users something usable if they go to the "...

How do I put my PHP files on a Linux AMI on EC2 - dreamweaver / FTP / SSH ?

I have launched an EC2 linux instance (a rightscale CentOS v 5.2 i386 image) and want have followed a tutorial (http://www.ardentsoft.com/blog/2009/3/4/lamp-on-ec2-part-6-configuring-apache.html) for configuring PHP and Apache. Now I need to know how to get my PHP files from my dedicated server up to the cloud. I usually use dreamweaver ...

PHP Implementation of an OAuth Store for Amazon SimpleDB

I am implementing OAuth for delegated access to our API for OnePage (http://myOnePage.com). We are using SimpleDB for our database. Does anyone know of a PHP OAuthStore implementation for SimpleDB? Or any other language for that matter, would be useful. If I don't find anything, I shall be coding it myself and will contribute it back t...

What is "Signature" or "Timestamp" for the Amazon ecommerce web service?

Register for Amazon Web Services. Then try the following URL: http://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService&amp;Operation=ItemLookup&amp;AWSAccessKeyId=YOURKEY If you have my experience you'll see: <Error> <Code>AWS.MinimumParameterRequirement</Code> <Message> Your request should have atleast 1 of the foll...

Port LAMP application to EC2

Any good resource on how to port a LAMP stack to Ec2? Mainly I'm concerned about storage, the MySQL part. The existing app works agains a single store. Do I need to port all my storage to S3? Will the EC2 instances be able to share a single MySQL database? Alternatively I can partition my data and have a single database for each EC2 ima...

Ruby on Rails MVC Question

I intend to store in a database a minimal amount of information pertaining to a book (title, isbn). However, on display I'd like to display additional attributes (pages, author, cover image) not stored in the database. I plan on getting this information from the Amazon Web Services (AWS) using Ruby/AWS. I am very new to Ruby on Rails and...

AWS ssh access 'Permission denied (publickey)' issue

How to connect to a AWS instance through ssh? I have: Signed up at AWS; Created a public key and a certificate at AWS website and saved them to disk; Went to my console and created environment variables: #export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/ #export EC2_CERT=/home/default/aws/cert-EBAINCRNWHDSCWWIHSOKON2YWG...

Help understanding Amazon Web Services pricing

Hi I am trying to understand Amazon's pricing for regional data transfer... I have an EC2 instance in a us-east region and an S3 bucket in the EU. I am also using a 3rd party service that uses an EC2 instance that is only available in the US. Can someone help to clarify what I am charged and where. Data can take one of 2 routes: 1GB...

How to access/ping a server located on AWS?

With what address should a server located on AWS be accessed? I've created an AWS instance and installed a web server on it. However the server is not reachable via any of the: ec2-174-129-24-92.compute-1.amazonaws.com the IP address from instance's ifconfig an elastic IP address I've created on the AWS dashboard and associated with t...

Where can I find Amazon DevPay C# Sample Code that works?

I am trying to code an small application that will utilize Amazon DevPay and I am having difficulties sending a few sample requests and getting errors. Looking for library class in c# that will conceal all the details. Currently playing with the sample C# library by Amazon but having no luck. any other will be appreciated. This link ...

S3 Redirecting Keys

Is it possible to set up redirects on s3 keys? I haven't been able to find any information on this online. ...

Amazon SimpleDB Woes: Implementing counter attributes

Long story short, I'm rewriting a piece of a system and am looking for a way to store some hit counters in AWS SimpleDB. For those of you not familiar with SimpleDB, the (main) problem with storing counters is that the cloud propagation delay is often over a second. Our application currently gets ~1,500 hits per second. Not all those hi...

How does one find prices from Amazon's site programmatically?

So Amazon has lots of different APIs for different things, and it's hard to find the one I'm looking for. I have a client that sells things and checks Amazon's lowest price to know where to price their things (slightly under the lowest thing there). They want functionality integrated into their inventory system that would automatically ...

Best practices for developing scalable video transcoding server on Amazon Web Services?

What do people think are the most important issues when developing an application that is going to allow users to upload video and images to a server and have them transcoded by FFMPEG and stored in amazon S3? I have a couple of options; 1) install FFMPEG on the same server that handles file uploads, when a video is uploaded and stored ...

silverlight range seeking

So I'm trying to use amazon and cloudfront to host my media. Unfortunately Amazon S3 does not send the correct headers like accept-ranges even though it supports range requests. As a result silverlight does not seek ahead using byte range requests. Questions: 1. What headers does silverlight require to issue byte range requests when see...

Enumerate keys in Amazon SimpleDB

I'm trying to enumerate keys in Amazon SimpleDB. In SQL, it would be something like: select unique itemName() from domain; I've searched around but didn't find any way to do this. Any help? ...

Problems with PHP API for Amazon CloudWatch service ... returning Internal Error Response Status Code: 400

I am trying to set up the PHP API for CloudWatch found here. There are 2 samples with the library and I have managed to get the first (ListMetricsSample.php) to display a list of the metrics available for my running instances in Europe. As far as I can see though this just lists the metrics, there are no values for the metrics given in t...

Is there a production grade SimpleDB .NET library?

Here you will find all the SimpleDB code samples on the AWS page. Here you will find a VB.NET SimpleDB library. Is there a production grade SimpleDB library, preferable built in C#. If not, May I use the VB.NET library on a C# project as a reference? ...

how to create a security group with dynamic IP address on amazon web service

hello.. i need to run an instance and access with my ip address..but the problem is that myISP changes my IP adress every day.plz help me how do i create a security group so that my instance remains accessible even if my ip changes.... thanks in advance.. ...