Questions tagged [amazon-s3]

This is for questions on Amazon's cloud storage service.

1120 questions
13
votes
2 answers

Uploading files with similar filename in Amazon S3

Basically, how does Amazon S3 handle files which already have the same filename inside a specified bucket? Assuming I can only upload to one particular bucket, will S3 change the filename or something? Thanks!
Nikko
  • 255
  • 1
  • 2
  • 5
13
votes
1 answer

Duplicity and Amazon S3 Script

I'm looking to backup my linux server to Amazon S3 using duplicity. I found a great resource here that helped me get it setup and am using the basic script that was listed there for me and now copied here: #!/bin/sh # Export some ENV variables so…
quickcel
  • 438
  • 3
  • 9
12
votes
1 answer

Serving website from Cloudfront and S3 without public bucket

When serving a website via CloudFront from an S3 bucket, I would typically apply the following Bucket Policy to allow access to my files: { "Version": "2012-10-17", "Statement": [ { "Sid": "Allow Public Access to All…
Steve
  • 221
  • 2
  • 4
12
votes
1 answer

Elastic Beanstalk S3 access via .ebextensions

I have a simple file in my .ebextensions folder: 00-myconfig.config Resources: AWSEBAutoScalingGroup: Metadata: AWS::CloudFormation::Authentication: S3Access: type: S3 …
12
votes
8 answers

How to schedule automatic (daily) snapshots of AWS EC2 Windows Instance?

I have some Windows servers hosted on Amazon EC2. Some run Windows Server 2003 and other run Windows Server 2008. These are EBS-backed instances. Most of the instances also have some additional EBS-volumes attached. We want to schedule a daily…
Stanley
  • 365
  • 2
  • 4
  • 14
12
votes
1 answer

Adding CloudFlare to S3 bucket

I have an Amazon S3 bucket that contains thousands of JPGs and similar media assets. (It's the storage for my forums.) I don't host a static site in this bucket (no HTML of any kind) and it's completely open for the public to read (so the forum…
Eric
  • 1,127
  • 3
  • 13
  • 24
11
votes
2 answers

AWS S3 Bucket name already exists

I in S3 Buckets if ill create a new one or Bucket name already exists but I can I have two visible buckets. Edit: In other words, my bucket's been orphaned and I cant see it to delete it and I cannot recreate as per image:
D.King
  • 153
  • 1
  • 1
  • 4
11
votes
1 answer

AWS CLI throws "Unable to locate credentials", the second time it's run

I'm trying to download some files from S3 to an EC2 instance using the AWS CLI (1.8.7) on startup using a User-Data Script. This instance has a IAM Role & Instance Profile with the appropriate permissions. Sometimes, the CLI will fail with the error…
11
votes
2 answers

Nginx as s3 proxy with private buckets

I'm trying to set up Nginx as a proxy for a static html/js webapp hosted on S3. I read a lots of tutorials and posts and I could make it work if my bucket is set as public. The reason I need Nginx as a proxy is that I don't want my bucket to be…
emas
  • 211
  • 1
  • 2
  • 5
11
votes
4 answers

How do I use SSL with Amazon S3 CNAME masked buckets?

I am successfully running an Amazon S3 bucket as media.mydomain.com. The problem is, I'm running an https site and I'm unable to link to files using https//media.mydomain.com. How can I switch to using SSL? I'm using Laravel Forge + Digital Ocean…
Citizen
  • 560
  • 6
  • 16
11
votes
3 answers

Pricing of Key Pairs and Security Groups on AWS?

My free AWS account expired. I deleted all S3 and EC2 resources, but am wandering if I can leave the Key Pairs and Security Groups without having to pay for them. (My account resources look like this now: Resources) Amazon's documentation does not…
boardrider
  • 949
  • 2
  • 18
  • 29
11
votes
4 answers

Amazon Cloudfront with S3 Redirect

I'm trying to do something that should be relatively straight-forward - I want to setup a few domains and subdomains to redirect to the core domain for our site, but I want to put the redirects out on Cloudfront. Everything works except redirecting…
Chris Moschini
  • 469
  • 1
  • 8
  • 16
11
votes
3 answers

Amazon S3 and Access-Control-Allow-Origin

Does Amazon S3 allow custom headers? Or am I out of luck? Access-Control-Allow-Origin: *
Baggz
  • 211
  • 2
  • 4
10
votes
2 answers

Determine which AWS account owns an S3 bucket

If someone gives me an S3 url with a bucket and an object, but I don't know which account owns the bucket, how can I determine which credentials to present in order to gain access to the object, assuming I have access to hundreds of AWS accounts,…
Mike Sokolov
  • 211
  • 2
  • 5
10
votes
2 answers

Give EC2 IAM role read access to S3 bucket

I have an AWS Elastic Beanstalk Rails app that I am configuring via the config script to pull some files from an S3 bucket. When I start up the application, I keep receiving the following error in the logs (bucket name has been changed for…