1. 程式人生 > >Troubleshoot HTTP 307 Errors in Amazon S3

Troubleshoot HTTP 307 Errors in Amazon S3

After you create an Amazon S3 bucket, it can take up to 24 hours for the bucket name to propagate across all AWS Regions. During this time, you might receive the "307 Temporary Redirect" response for requests to regional endpoints that aren't in the same Region as the S3 bucket. For more information, see

Temporary Request Redirection.

To avoid the 307 Temporary Redirect response within 24 hours of creating the bucket, send requests only to the regional endpoint that's in the same Region as the bucket:

  • If you're using the AWS Command Line Interface (AWS CLI) to access the bucket, you can configure the default region of your AWS CLI to be the same Region that the bucket is in. For more information, see
    Configuring the AWS CLI
    .
  • If you're using an Amazon CloudFront distribution with an Amazon S3 origin, CloudFront forwards requests to the default S3 endpoint (s3.amazonaws.com), which is in the us-east-1 Region. If you must access Amazon S3 within the first 24 hours of creating the bucket, you can change the
    Origin Domain Name
    of the distribution to include the regional endpoint of the bucket. For example, if the bucket is in us-west-2, you can change the Origin Domain Name from bucketname.s3.amazonaws.com to bucketname.s3-us-west-2.amazonaws.com.

Tip: As a best practice, include the AWS Region of your bucket in your HTTP requests when possible. Specifying the AWS Region reduces the number of DNS redirects and potential DNS propagation issues. For example, if you're using the AWS CLI, include the --region parameter in your request to specify the AWS Region.

相關推薦

Troubleshoot HTTP 307 Errors in Amazon S3

After you create an Amazon S3 bucket, it can take up to 24 hours for the bucket name to propagate across all AWS Regions. During this time, you

Troubleshoot HTTP 5xx Errors from Amazon S3

Enable a retry mechanism in the application making requests Because of the distributed nature of Amazon S3, requests that return 500

Handle HTTP Request Errors in Go @ Alex Pliutau's Blog

In this short post I want to discuss handling HTTP request errors in Go. I see people write code and they believe to be handling errors when mak

Troubleshoot HTTP 5xx Errors when using Elastic Load Balancing

The resolutions for HTTP 5XX vary. See the following pages for more information: HTTP 502 (Bad Gateway) HTTP 502 errors

Ensure Data Integrity of Objects in Amazon S3

Note that when you modify the Windows system path from a command prompt, the change does not persist when Windows is restarted. If you want to

Troubleshoot SELECT COUNT Query in Amazon Athena Returning Only One Record

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Amazon Athena – Interactive SQL Queries for Data in Amazon S3

The amount of data that we all have to deal with grows every day (I still keep a floppy disk or two around in order to remind myself that 1.44 MB

Troubleshoot HTTP 503 Errors While Using Classic Load Balancers

To see the number of healthy back-end instances behind your load balancer, check the HealthyHostCount and UnHealthyHostCount metrics in CloudWa

Troubleshoot HTTP 504 Errors While Using Classic Load Balancers

An HTTP 504 error is a HTTP status code that indicates a gateway or proxy has timed out. When troubleshooting, investigate the following:

Resolve HTTP 403 Access Denied Error From an S3 Website Endpoint Origin in Amazon CloudFront

{ "Version": "2008-10-17", "Id": "PolicyForCloudFrontPrivateContent", "Statement": [ { "Sid": "Allow-OAI-Access-

Resolve HTTP 403 Access Denied Error From an S3 REST API Endpoint Origin in Amazon CloudFront

{ "Version": "2008-10-17", "Id": "PolicyForCloudFrontPrivateContent", "Statement": [ { "Sid": "Allow-OAI-Access-

Troubleshoot HTTP 404 Error "NoSuchKey" from Amazon S3

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

[Angular] Handle HTTP Errors in Angular with HttpErrorResponse interface

int network perror ssa with proc () esp use When communicating with some backend API, data travels over the network using the HTTP protoc

Introducing support for Amazon S3 Select in the AWS SDK for PHP

We’re excited to announce support for the Amazon Simple Storage Service (Amazon S3) SelectObjectContent API with event streams in the AWS SDK for

Troubleshoot Courier Fetch Error in Kibana on Amazon ES

Use one or more of the following methods to resolve the courier fetch error: Consider resizing your cluster Confirm that

Resolve Errors Reading JSON Data in Amazon Athena

To remedy NULL or incorrect data errors, check the following common issues: Use the correct JSON SerDe with Amazon Athena to read yo

Change the VPC or Endpoint ID in an Amazon S3 Bucket Policy

The VPC ID or VPC endpoint ID is not valid If the VPC ID or VPC endpoint ID in the bucket policy is not valid (for example, it's mis

Use Logs to Troubleshoot Issues with Hive Queries in Amazon EMR

$ aws s3 ls s3://aws-logs-223377617334-us-west-2/elasticmapreduce/j-3MCDUQO2MWNJ5/ PRE containers/

Amazon S3

binary embed rest 客戶端 傳輸 自己 topic amazon s3 權限 1. Buckets: Buckets form the top-level namespace for Amazon S3, and bucket names are

Amazon S3 功能介紹

tlist summary UC cee let ktr mode cto secret 引自:https://blog.csdn.net/tomcat_2014/article/details/50582547 一 .Amazon S3介紹 Amazon Simple S