I am using the latest iOS SDK for AWS, and fetching files from S3 works fine using the TransferManager Class
S3GetObjectRequest *request = [[S3GetObjectRequest alloc] initWithKey:@"test.png" withBucket:@"my_bucket_name"];
S3TransferOperation * op = [self.tm download:request];
then I wanted to add Cloudfront for better edge serving, but setting the cloudfront distribution as the S3 bucket does not work..
S3GetObjectRequest *request = [[S3GetObjectRequest alloc] initWithKey:@"test.png" withBucket:@"dcn1i2k31v14q.cloudfront.net"];
S3TransferOperation * op = [self.tm download:request];
it was an accepted answer in this SO question
iOS AWS SDK and CloudFront - accessing images
I know I can get cloudfront files directly but I wanted to take advantage of the AWS SDK Transfer manager class queue and pause resume capabilities.
any ideas?
thank you