Has anyone worked around with Amazon Web Services (AWS) with iOS SDK 2. I know as per Amazon SDK Team,
Version 2 of the AWS Mobile SDK for iOS has reached General Availability (GA) and is no longer in Developer Preview. Version 1 is deprecated as of September 29, 2014 and will continue to be available until December 31, 2014 in our aws-sdk-ios-v1 repository. If you are building new apps, we recommend you use Version 2.
So, i am trying to upgrade the application with newer version (2.0) of the AWS iOS SDK. As per the [sample application it requires following for authentication as credentials,
NSString *const AWSAccountID = @"Your-AccountID";
NSString *const CognitoPoolID = @"Your-PoolID";
NSString *const CognitoRoleAuth = nil;
NSString *const CognitoRoleUnauth = @"Your-RoleUnauth";
I have filled this with some values which is available on console. But, all the time getting following log,
2014-10-17 18:33:04.056 S3TransferManagerSample[5343:70b] __37-[SecondViewController downloadFiles]_block_invoke154 Error: [Error Domain=com.amazonaws.AWSSTSErrorDomain Code=0 "The operation couldn’t be completed. (com.amazonaws.AWSSTSErrorDomain error 0.)" UserInfo=0x7b028500 {Type=Sender, Message=Not authorized to perform sts:AssumeRoleWithWebIdentity, __text=(
"\n ",
"\n ",
"\n ",
"\n "
), Code=AccessDenied}]
Where to get these credentials properly, no proper guidelines and documentations are there to get this. Even nothing properly explained on Amazon Cognito console to get these creditials.
Has anyone done this previously, kindly guide me to get this.
Many Thanks