amazon-s3

Rails: Obfuscating Image URLs on Amazon S3? (security concern)

To make a long explanation short, suffice it to say that my Rails app allows users to upload images to the app that they will want to keep in the app (meaning, no hotlinking). So I'm trying to come up with a way to obfuscate the image URLs so that the address of the image depends on whether or not that user is logged in to the site, so...

Zend Framework Amazon S3. How to create subfolder in a bucket?

How to create subfolder in a bucket? $s3->createBucket creates only a bucket if I tried $s3->create('bucket/subfolder') it says: bucket name contains invalid characters. tried this either: $s3->registerStreamWrapper("s3"); mkdir("s3://bucket/subfolder"); didn't work either. P.S: credentials are valid. so don't tell me that I'm passi...

Storing Amazon S3 credentials in .bashrc environemental variables causes Rails app to fail

I appologise in advance for the length of this post.... I'm developing a rais app that uses paperclip to store stuff on Amazon S3. The app is hosted on Heroku. I'm developing on Ubuntu Karmic. The problem that I am about to describe occurs in development (on my localhost) and production (on Heroku). The standard way of passing S3 cr...

Core Data persistent object located on Amazon S3?

I am curious if my persistent object of Core Data can be stored and retrieved using Amazon S3. I think it is a perfect combination to put your application on the cloud. Or Amazon has other services? Has anyone had any success stories to share? Edited: I know that there is no direct support of Core Data for S3, but there is ASIS3Req...

Amazon S3 object redirect

Is it possible to put a redirect header on a s3-object? Like a 301 redirect. For example: mybucket.amazon-aws.com/myobject --> example.com/test Preferably by setting a header like this on the object: HTTP/1.1 301 Moved Permanently Location: http://example.com/test Content-Type: text/html Content-Length: 0 ...

Amazon S3 Integration

Hello, I am trying to integrate S3 with one of my content management systems. The idea is that I want to have document control features. The system is quite unique in that it handles thousands of sites, then each site can have any number of contributors or authors who have permission to upload documents and files to the document contro...

Could anyone show me how to create a bucket on Amazon S3 with PHP?

I'd love to see some code here rather than enjoy some sourse outside. =) ...

php amazon s3 bucket creation

We try to create a bucket on Amazon S3............. what's wrong with this code???????????? $req =& new HTTP_Request("http://s3.amazonaws.com/[bucket-name]"); $req->setMethod("PUT"); setAuthorizationHeader($req); $req->sendRequest(); if ($req->getResponseCode() == 200) { // bucket was created } else { // someth...

Should I persist images on EBS or S3?

I am migrating my Java,Tomcat, Mysql server to AWS EC2. I have already attached EBS volume for storing MySql data. In my web application people may upload images. So I should persist them. There are 2 alternatives in my mind: Save uploaded images to EBS volume. Use the S3 service. The followings are my notes, please be skeptic abou...

How can I show image file from Amazon S3 in asp.net mvc?

Hi all, I need to show image(thumbnail) in view page using controller/action.(like: /Image/Thumbnail) I can send image file that is stored locally by calling the method in controller. // sample code public FileResult Thumbnail() { // get image Stream outFile = System.IO.File.Open("c:\\test.jpg", FileMode.Open); // send ima...

S3 File Management Skeleton - PHP/MySQL

I am looking for a skeleton framework to manage files on S3 utilizing php/mysql. My hope is that someone has already created it and I can pull from it instead of building it all myself. I am thinking something like dropbox.com Anyone know of a open source solution that I can pull from? ...

What exactly will Amazon return if asked to list all the buckets?

As I have to parse it, I must know what the returning data will be structured into? ...

Workflow for developing number crunching applications on amazon ec2/S3

Much has been written about deploying data crunching applications on EC2/S3, but I would like to know, what is the typical workflow for developing such applications? Lets say I have a 1 TB of time series data to begin with and I have managed to store this on S3. How would I write applications and do interactive data analysis to build m...

Use an HTTPS Cert with bucket as a domain name on Amazon S3

I created a bucket similar to "mycdn.mysite.com" on Amazon-s3, as expected the files are available using that http://mycdn.mysite.com/files/foo.gif. This works fine with http, I would like to somehow add a SSL certificate so that the files are served up via https, similar to https://mycdn.mysite.com/files/foo.gif. Is it possible to add...

Choosing gems to work with AWS

Suppose a service written with RoR starts to use AWS S3 to store some data. What is the best library to use for working with AWS S3? Currently the main two alternatives for me are: RightScale AWS Ruby gems http://github.com/rightscale/right_aws AWS::s3 http://amazon.rubyforge.org/ What are their main advantages and disadvantages? Wha...

Zip up all Paperclip attachments stored on S3

Paperclip is a great upload plugin for Rails. Storing uploads on the local filesystem or Amazon S3 seems to work well. I'd just assume store files on the localhost, but the use of S3 is required for this app as it will be hosted on Heroku. How would I go about getting all of my uploads/attachments from S3 in a single zipped download? G...

Amazon S3 metadata key being prefixed , how to avoid this ?

I have code which writes to something to s3 bucket. PutObjectRequest titledRequest = new PutObjectRequest(); titledRequest.WithMetaData("Eip1", "Volume-1") .WithMetaData("Eip2", "Volume-2") .WithContentBody("this is an Elastic IP Address Details for a Volumes") .WithBucketName(bucketName) .WithKey(keyName); and read it using ...

Uploading files different servers at once using a single html Form

Is there a way to make a form where it can simultaneously upload to several servers at once? Currently in my web application, I am asking the users to type in some info + select a few files to upload. Title, Description, Info, etc File 0 File 1 File 2 File ... On the backend, I'm using Pylons. Currently it accepts POST of (info + ...

How can I script an alert for when my Amazon Web Service usage goes above a certain amount?

We're using S3, SimpleDB and SQS on quite a complicated project. I'd like to be able to automatically track their usage, to be sure we don't suddenly spend large amounts of money when we didn't intend to (perhaps because of a bug). Is there a way of reading the usage figures of all Amazon Web Services and/or the current real time dolla...

Python Boto S3 to work with Custom Domains in Amazon S3

How do I use the Python Boto library with S3 where the URL's it generate will be my CNAME'd subdomain to the Amazon S3 Server. By default it uses the default format BUCKETNAME.s3.amazonaws.com but S3 supports custom domain aliasing using CNAME (so you can have custom.domain.com -> CNAME -> custom.domain.com.s3.amazonaws.com where "cust...