php-sdk-aws 求解

ffgsgs 2016-02-01 10:38:06
刚刚接触aws 使用php在S3 存文件。遇到的问题。求大神们告诉下 是哪里错了。
require_once("vendor/autoload.php");
use Aws\S3\S3Client;
$config = array(
'key'=>'XXXXXXXX',
'secret'=>'XXXXXXX',
'region'=>'Beijing'
);


$s3 = S3Client::factory($config);

报错 Could not find an endpoint for the s3 service in the Beijing region 我的S3 我看是Beijing ~
感谢大神们;
...全文
1432 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

409

社区成员

发帖
与我相关
我的任务
社区描述
AWS
社区管理员
  • AWS
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧