New answers tagged

0

Solution: Setup the Redirect as stated in the question then wait out the S3 and CloudFront cache times. They can be 4 hours or more, so you just have to set it all up then wait and hope for the best. (This is Michael's solution from the Comments, but it's now been years and this really deserved to be marked as Answered).


0

307 is the HTTP code for "Temporary Redirect". Per the S3 docs on such redirects: Temporary Request Redirection A temporary redirect is a type of error response that signals to the requester that he should resend his request to a different endpoint. Due to the distributed nature of Amazon S3, requests can be temporarily routed to the wrong ...


0

This seems to be the default behaviour for this plugin, so it has to be managed using the plugin features. Basically, you have to set up the plugin to backup-then-delete the objects with a prefix to the same bucket. In that way, Logstash will skip object when it polls the bucket after the next interval. Sample config: s3 { bucket => "s3-access-logs-...


1

Try using s3-cli instead of s3cmd. I used it instead of s3cmd to upload files to my s3 bucket and it made my deployment faster almost by 17 minutes (from 21 to 4 minutes)! Here's the link : https://github.com/andrewrk/node-s3-cli


1

cron runs under root user, make sure your root user has s3cmd configuration otherwise copy them for root user cp -i /home/ubuntu/.s3cfg /root/.s3cfg


4

https://aws.amazon.com/premiumsupport/knowledge-center/account-transfer-s3/ You can copy Amazon S3 objects from one AWS account to another by using the S3 COPY operation. You must give the destination AWS account access to the source AWS account's resources by using Amazon S3 Access Control Lists (ACLs) or bucket polices. After setting cross-account ...


-4

You can implement the following scenario: Deploy a temporary EC2 instance in either source or destination region. Bigger instance you choose, better performance you receive. Install an S3 client on this instance and transfer your files. After the operation finished, terminate your EC2 instance.


1

@MichaelHampton is right. But I would probably not use an USB stick but a printed sheet of paper in a sealed envelope. In the scenario of a lost smartphone and missing Google Authenticator it might not be that relevant, but often in case of an emergency there are several things going wrong. And reading a sheet of paper will nearly always be possible. Seal ...


0

If the binary blob is only a few hundred megabytes, you can just include it with your function as a "dependency". You can add it as a file alongside your code and reference it accordingly. Another option would be to have two lambda functions. One function does nothing but serve up the blob (which you create as above by sending the blob with the function) ...


3

I wouldn't recommend the 'Any authenticated AWS user' option mentioned by James. Doing so adds a bucket-level ACL that allows any AWS account (not just your IAM users) to list/delete/modify-acls for that bucket. i.e. public read/write for anyone with an aws account.


0

One solution that I can think of is to route to your buckets using subdomains: http://bucket1.example.com , http://bucket2.example.com All you would need to do is to create the relevant subdomain in your Route 53 configuration, and then alias it by creating a CNAME record. So, bucketn.example.com will have a CNAME record with bucketn.s3-ap-northeast-1....


1

requests to www.mydomain.com/blabla... will be redirected to the same mydomain but without the www This is done by creating an empty bucket in S3 named www.example.com, configuring it to redirect all requests to a different hostname (example.com) and pointing DNS at it. If you want it to support https request redirection on the www side, you create a ...


3

You cannot do this. No RDBMS allow you to keep data in S3. S3 is just an internet object store, each access need you to download the WHOLE object using particular API. It is only practical if the object is small enough to load one time and fit into the memory, e.g. something as small as sqlite that allow you to load in-memory and little to no change to the ...


4

Amazon S3 is not a file system. You cannot just mount it to your EC2 instance like a regular disk or EBS. It now follows that a symlink is not possible. You can however use s3fs to mount your S3 bucket as a directory in your EC2 server. I used this tutorial and I was able to successfully mount my S3 to my EC2 running on Ubuntu 14.04. WARNING You are ...


1

What you're looking for is EFS(elastic file system), but that hasn't been released yet. What you could try is this: https://forums.aws.amazon.com/thread.jspa?messageID=475840 but I have never tried this myself.


1

You can point the A record to the instance ip, then on the instance set up apache to act as a proxy and reroute traffic on port 80 to 8080, or change the service so it runs on port 80. Or point the domain to an elastic load balancer and have the load balancer point to port 8080 on the instance.


0

When using an S3 bucket with the web site hosting feature (which enables index documents) you don't want to use the REST endpoint of the bucket, which is what CloudFront will offer you in the console. You need to type in the web site endpoint, instead. On the Create Distribution page, for Origin Settings, type the Amazon S3 static website hosting ...



Top 50 recent answers are included