Amazon AWS S3 SDK for iOS drops connection (Error -1005)

会有一股神秘感。 提交于 2019-12-05 21:27:04

I didn't set the correct endpoint for the bucket. The default endpoint only works for US buckets.

In AmazonClientManager.m, add the correct endpoint for your bucket region.

    s3  = [[AmazonS3Client alloc] initWithCredentials:credentials];
    s3.endpoint = @"https://s3-eu-west-1.amazonaws.com";

A list of regional endpoints for S3 and other AWS services can be found here

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!