This is for questions on Amazon's cloud storage service.
Questions tagged [amazon-s3]
1120 questions
34
votes
2 answers
No Cache-Control Header for files from AWS CloudFront with S3 Origin
We just migrated to Amazon AWS. We currently have an EC2 instance that's working well. It's running Nginx in front and Apache in the back-end. That's running well also. All sites are launched properly and includes the Cache-Control header for files…

jarvis
- 2,006
- 4
- 18
- 31
33
votes
3 answers
How can I reuse existing resources in CloudFormation?
I have an S3 bucket as a resource in my CloudFormation template, with DeletionPolicy set to Retain. This works as expected: when deleting the stack, it does indeed retain the bucket. However, when I attempt to create the stack again, creation fails…

vartec
- 6,217
- 2
- 33
- 49
31
votes
3 answers
What is the difference between Buckets and Folders in Amazon S3?
What is the difference between Buckets and Folders in Amazon S3 ? Is such a thing like Folder exist in Amazon S3 ? or only the S3 clients present Folders to us for better handling ?
nlingutla
31
votes
8 answers
Automatically delete old items from s3 bucket
Is there an easy way to set up a bucket in s3 to automatically delete files older than x days?

jdp
- 413
- 1
- 4
- 7
28
votes
4 answers
Setting Access-Control-Allow-Origin on Cloudfront
I am having problems serving static assets to Firefox using AWS Cloudfront.
Chrome works perfect, but Firefox is returning a CORS error.
If I execute curl , I get:
HTTP/1.1 200 OK
Content-Type: application/x-font-opentype
Content-Length:…

Tony
- 445
- 2
- 6
- 14
27
votes
4 answers
Why S3 website redirect location is not followed by CloudFront?
I have a website hosted on Amazon S3. It is the new version of an old website hosted on WordPress.
I have set up some files with the metadata Website Redirect Locationto handle old location and redirect them to the new website pages.
For example: I…

Yannick Chaze
- 418
- 1
- 4
- 8
25
votes
1 answer
How to let user upload files to S3 bucket, but not overwrite or delete?
I have the following IAM policy for a user
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1395161912000",
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:PutObject",
"s3:*"
],
…

Markus Hedlund
- 1,127
- 2
- 19
- 33
25
votes
5 answers
How to move S3 bucket to different location
We use S3 for storing millions of entries in our webapp, now we move the whole thing to EC2, EU servers, and we also want to move that S3 data to EU. But the bucket we use is in US, and there seem to be no tool to move whole bucket content to…

skrat
- 505
- 1
- 7
- 14
24
votes
7 answers
How to verify a AWS VPC (S3) endpoint works?
I added a VPC endpoint to my VPC using CloudFormation, and allowed s3 usage. The routes are visible in the AWS console, but not in the local routing tables of the
EC2 instances:
$ route -n
Kernel IP routing table
Destination Gateway …

M. Glatki
- 1,964
- 1
- 17
- 33
22
votes
2 answers
No targets available when trying to set alias target from Route 53 to S3
I'm trying to setup a simple Amazon AWS S3 based website, as explained here.
I've setup the S3 bucket (simples3websitetest.com), gave it the (hopefully) right permissions:
{
"Version": "2012-10-17",
"Statement": [
{
…

Amir Zucker
- 323
- 1
- 3
- 7
21
votes
2 answers
Restore a versioned S3 bucket to a particular point in time
Let's say I've got S3 versioning enabled for my bucket: http://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html
Then, let's say someone (for example, junior employee) messes up the S3 bucket (deletes some files accidentally, etc.)
How can I…

elsurudo
- 313
- 1
- 2
- 6
21
votes
8 answers
Which is the fastest way to copy 400G of files from an ec2 elastic block store volume to s3?
I have to copy 400G of files from an elastic block store volume to an s3 bucket... Those are about 300k files of ~1Mb
I've tried s3cmd and s3fuse, both of them are really, really slow.. s3cmd ran for a complete day, said it finished copying, and…

aseba
- 299
- 1
- 2
- 5
18
votes
5 answers
Any need to make backup of data on Amazon S3?
I'm hosting 200 GB of product images at S3 (this is my primary file host).
Do I need to back that data up somewhere else, or is S3 safe as it is?
I have been experimenting with mounting the S3 bucket to a EC2 instance, and then making a nightly…

Chrille
- 463
- 2
- 5
- 10
18
votes
3 answers
How do I prevent deletion of S3 buckets?
It looks like creating a bucket policy might do the trick, but I am having trouble creating the policy.

Jason Watts
- 438
- 1
- 3
- 10
18
votes
2 answers
Why don't I have permissions to edit an S3 bucket policy when logged on as the person who created the AWS account
I am new to AWS. I am setting up an S3 bucket that I want to use to store media files for a Django App I am developing.
I am logged in as the person who created the AWS account, but when I click on the permissions tab and then try to edit the bucket…

RLBChrisBriant
- 595
- 1
- 7
- 22