permanentredirect S3未指定端点 [英] permanentredirect s3 for unspecified endpoint

查看:188
本文介绍了permanentredirect S3未指定端点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试用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.

这篇关于permanentredirect S3未指定端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆