permanentredirect S3未指定端点permanentredirect

由网友(忆昔ˋ醉红尘)分享简介:我尝试用S3,但即时通讯运行到权限问题(我认为)。I'm experimenting with s3 but im running into a permission problem (i think).输出:AWS::S3::PermanentRedirect in CkeditorController#crea...

我尝试用S3,但即时通讯运行到权限问题(我认为)。

I'm experimenting with s3 but im running into a permission problem (i think).

输出:

 AWS::S3::PermanentRedirect in CkeditorController#create

The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.

我用的CKEditor。我CKEDITOR :: Picture类包括这样的:

I'm using ckeditor. My Ckeditor::Picture class includes this:

  has_attached_file :data,
  :s3_credentials => "#{Rails.root}/config/s3.yml",
  :storage => :s3,
  :path => ":attachment/:id/:style.:extension"

  validates_attachment_size :data, :less_than=>2.megabytes

在s3.yml,香港专业教育学院得到了:

In the s3.yml, ive got:

access_key_id: "key"
secret_access_key: "key"
bucket: "name"
AWS_CALLING_FORMAT: SUBDOMAIN

我在想什么? THX提前!

What am I missing? thx in advance!

推荐答案

我想你的水桶是不是在美国标准区域。你有没有尝试添加AWS_CALLING_FORMAT:SUBDOMAIN您使用.yml文件?该请求应该指出然后到相应的与你的水桶的区域的端点。

I suppose your bucket is not in US Standard zone. Have you tried to add "AWS_CALLING_FORMAT: SUBDOMAIN" to your .yml file? The request should be pointed then to the endpoint corresponding with the region of your bucket.

阅读全文

相关推荐

最新文章