amazon-s3

Amazon S3 - x-amz-meta

Hi folks, I'm uploading photos, via PHP, to an Amazon S3 bucket. Everything is working great so far. My question is about x-amz-meta. Would I use x-amz-meta key/value pairs to store data like the User ID of the person uploading and their account type (free, premium, etc.)? Or do I store this as regular metadata, not prefixed with x-amz...

How do I store my Amazon Credentials in my app?

Hello, I am making an app that accesses Amazon S3. But should I put the Amazon S3 login credentials (Access Key ID and Secret Access Key) into the .exe that customers will be using? DropBox uses Amazon S3, but how do they store their login credentials? When I send a file to my DrobBox, does the file go to their server first, then thei...

Paperclip with S3 on Rails 3 / uninitialized constant AWS::S3::Connection

I'm trying to upload a file to s3 using paperclip and get this error when making a new object and referencing the variable: the aws-s3 gem is installed the s3.yml file has the correct credentials ie: a = Attachment.new a.file NameError: uninitialized constant AWS::S3::Connection from /Library/Ruby/Gems/1.8/gems/aws-s3-0.6.2/li...

Amazon EC2 to S3 transfer

I wanted to backup my EC2 instance to S3. I downloaded EC2 tools from: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351. I set up environment variables to: EC2_HOME=<EC2 tools directory> EC2_PRIVATE_KEY=<path to private key generated after I created new X.509 certificate> EC2_CERT=<path to certificate I created ...

Flash not finding crossdomain.xml (Amazon S3)

Hi all, I have a flash app hosted at www.example.com that is trying to pull in assets from my Amazon S3 bucket at http://s3.example.com I have a crossdomain.xml file that is world-readable at the root level of the bucket. s3.example.com/crossdomain.xml The contents of that crossdomain.xml file are as follows: <?xml version="1...

Are there any API's for Amazon Web Services PRICING?

Are there any API's that have up-to-date pricing on Amazon Web Services? Something that can be queried, for example, for the latest price S3 for a given region, or EC2, etc. thanks ...

How can I remotely upload files to Amazon S3?

I am looking for a way to transfer files from a server to Amazon S3 bucket, without first downloading the files to my computer. All of the files I plan to transfer can be accessed publicly (e.g. http://something.com/file.ext). Everything I tried only allows me to directly upload files from my Mac to S3. P.S. Although I have access to wi...

Amazon Flexible Payments...CBUISingleUsePipelineSample.php is wrong

I've downloaded the php library for amazon flexible payments. I am following the included instructions and ran CBUISingleUsePipelineSample.php, as the docs say. The instructions say "The return URL will include expiry, tokenID, status, callerReference and signature parameters." When I run that file, expiry & tokenID are missing from my...

Link to download image instead of view image

I need to provide website visitors a link to download an original high resolution image. If I simply link to the image with a href="image.jpg", the browser displays the image. How do I make the browser download it? I'm using amazon S3 to server these images... If this requires having a special header set on the image, I'm sure it's po...

Paperclip to upload images to S3 in Rails. The files upload at a very slow rate. A work-around?

I'm working on a rails app where the user will be uploading large quantities of images. My current setup: Using SWFUpload to upload multiple files at once using the Paperclip plugin with S3 storage. After the original image is uploaded to S3, Delayed_Job is used for the post processing (thumbnails, etc). The problem I have is that the...

NameError: uninitialized constant Test::Unit::AssertionFailedError when upgrading to rails3

I'm trying to upgrade my rails application to Rails3. When I run functional tests, I get a lot of NameError: uninitialized constant Test::Unit::AssertionFailedError errors. But unit tests and website itself seems to work fine. Trace looks like this: NameError: uninitialized constant Test::Unit::AssertionFailedError /Users/mantas/.rvm/...

Streaming with Amazon S3

My website (developed with ASP.NET) publishes news along with related JPEG files and flash videos. Right now it is hosted as dedicated server. But it is becoming hard to maintain backup and bandwidth. Can I host image files, video files and audio files in S3 bucket to resolve my issue? I have seen some articles related to this. But want...

How to transfer an image to an Amazon EBS volume for EC2 usage?

I have a local filesystem image that I want to transfer to an Amazon EBS volume and boot as an EC2 micro instance. The instance should have the EBS volume as it's root filesystem - and I will be booting the instance with the Amazon PV-GRUB "kernels". I have used ec2-bundle-image to create a bundle from the image, and I have used ec2-upl...

How would I go about downloading a file from a submitted link then reuploading to my server for streaming?

I'm working on a project where a user can submit a link to a sound file hosted on another site through a form. I'd like to download that file to my server and make it available for streaming. I might have to upload it to Amazon S3. I'm doing this in Django but I'm new to Python. Can anyone point me in the right direction for how to do th...

s3cmd sync not setting ACL to public

Hey all, I'm trying to use s3cmd on ubuntu 10.04 to sync with a local folder. This is working great for getting the contents from the local drive out to S3. However, I want the file ACL to be "public", yet all the files are coming through without it. In my .s3cfg file, I set: acl_public = True I've tried: s3cmd sync -P --delete-rem...

How to copy files from HDFS to S3 effectively programatically

Hi, My hadoop job generate large number of files on HDFS and I want to write a separate thread which will copy these files from HDFS to S3. Could any one point me to any java API that handles it. Thanks ...

AWS::S3::NoConnectionEstablished error using aws-s3 gem in Rails

I am getting a AWS::S3::NoConnectionEstablished exception when trying to download a file using paperclip + s3. I can fire up s3sh and create a connection just fine with the s3 credentials in my config. What is the best next step I can take to debug this issue? This is what my model looks like: has_attached_file :file, ...

attachment_fu image resizing with s3 storage

Hello there, I'm facing a problem right now, where in my company, we want to resize the thumbnail images we have on amazon s3 storage using attachment_fu, I've been investigating how to regenerate this thumbnails and had found some guidelines to do it, however all of them work with local storage. I've found a way, that involves more o...

How to generate Signature for the AWS Import API request ?

According to the AWS Import API docs the request looks like this: POST / HTTP/1.1 content-type:application/x-www-form-urlencoded;charset=utf-8 host: https://importexport.amazonaws.com content-length:356 Operation=CreateJob&Manifest=manifestVersion%3A%202.0%0Abucket%3A%20myBucket %0AaccessKeyId%3A%2013Q2729HYRYMYRB3FK02%0AreturnAddress...

How to get image/videos from Amazon Aws Bucket??

How to get images/videos from Amazon Aws Bucket?? I have addedv some images & Videos into amazon aws bucket now i want to retrive those images. mostly videos .. How can i retrive it from bucket & show All list on page?? I'm using C#,Asp.net Please help Thanks [email protected] ...