My question is similar to the one here. I created Sign Up/Sign In using AWSMobileClient and this part worked fine. However, when I tried to query AppSync using Cognito user pool identity I could not get any data returned. I assigned the correct policies to the authenticated IAM role for the identity pool. I think the issue might be I need to implement some code snippets such as the one below:
let credentialsProvider = AWSCognitoCredentialsProvider(regionType:.USWest2,
identityPoolId:"us-west-2:d2545277-8214-4781-b516-2eb72d1bceba")
let configuration = AWSServiceConfiguration(region:.USWest2, credentialsProvider:credentialsProvider)
AWSServiceManager.defaultServiceManager().defaultServiceConfiguration = configuration
However, I don't think these three lines are the full code and I can't find any documentation on this. If someone knows, can you please post some doc/sample code? Thanks.