{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/235","labels_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/235/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/235/events","html_url":"https://github.com/aws/aws-sdk-ios/issues/235","id":103946987,"number":235,"title":"Access S3 bucket without specifying region?","user":{"login":"Paul-van-Klaveren","id":6428065,"avatar_url":"https://avatars.githubusercontent.com/u/6428065?v=3","gravatar_id":"","url":"https://api.github.com/users/Paul-van-Klaveren","html_url":"https://github.com/Paul-van-Klaveren","followers_url":"https://api.github.com/users/Paul-van-Klaveren/followers","following_url":"https://api.github.com/users/Paul-van-Klaveren/following{/other_user}","gists_url":"https://api.github.com/users/Paul-van-Klaveren/gists{/gist_id}","starred_url":"https://api.github.com/users/Paul-van-Klaveren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paul-van-Klaveren/subscriptions","organizations_url":"https://api.github.com/users/Paul-van-Klaveren/orgs","repos_url":"https://api.github.com/users/Paul-van-Klaveren/repos","events_url":"https://api.github.com/users/Paul-van-Klaveren/events{/privacy}","received_events_url":"https://api.github.com/users/Paul-van-Klaveren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-30T20:50:49Z","updated_at":"2015-08-31T17:54:11Z","closed_at":null,"body":"Hi,\r\nWe want our iOS app to retrieve files from a given S3 bucket, without having to specify from which region — any load balancing would be handled on the backend.\r\nIs this possible with the current SDK?\r\n\r\nI've tried calling `AWSServiceConfiguration` with `AWSRegionType.Unknown`, but that resolved to\r\nhttps://s3.(null).amazonaws.com/--bucketName--/--fileName-- followed by an error.\r\n\r\n(We sort of expected this to be possible out-of-the-box, considering Cross-Region Replication etc. https://aws.amazon.com/about-aws/whats-new/2015/03/amazon-s3-introduces-cross-region-replication/)\r\nMoreover, it seems to work via a browser:\r\nhttps://s3-eu-west-1.amazonaws.com/--bucketName--/--fileName--  ‹––– incl. region…\r\nhttps://--bucketName--.s3.amazonaws.com/--fileName--     ‹––– no region given here!\r\n\r\nNote: we are not using Cognito."},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/comments/136443760","html_url":"https://github.com/aws/aws-sdk-ios/issues/235#issuecomment-136443760","issue_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/235","id":136443760,"user":{"login":"yosuke-matsuda","id":1459206,"avatar_url":"https://avatars.githubusercontent.com/u/1459206?v=3","gravatar_id":"","url":"https://api.github.com/users/yosuke-matsuda","html_url":"https://github.com/yosuke-matsuda","followers_url":"https://api.github.com/users/yosuke-matsuda/followers","following_url":"https://api.github.com/users/yosuke-matsuda/following{/other_user}","gists_url":"https://api.github.com/users/yosuke-matsuda/gists{/gist_id}","starred_url":"https://api.github.com/users/yosuke-matsuda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosuke-matsuda/subscriptions","organizations_url":"https://api.github.com/users/yosuke-matsuda/orgs","repos_url":"https://api.github.com/users/yosuke-matsuda/repos","events_url":"https://api.github.com/users/yosuke-matsuda/events{/privacy}","received_events_url":"https://api.github.com/users/yosuke-matsuda/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T17:54:11Z","updated_at":"2015-08-31T17:54:11Z","body":"When using the AWS Mobile SDK for iOS, you always need to specify the region. You should manage a dictionary of buckets and regions to figure out to which region you need to send the request. Please note that the US Standard Region redirects requests to certain other regions, but it is not efficient."}}