I am trying to access Lambda function using iOS Swift and here is my set up AWS Role
- RoleName: ALLOW_LAMBDA_EXECUTE
- With Policy access to AWS Lambda full access, AWS Lambda execute, AmazonCognitoDeveloperAuthenticatedIdentities
- Trust Relationship: Allow services: lambda.amazonaws.com and condition has Cognito identity with "unauthenticated"
- Cognito Identity Pool: Has the role ALLOW_LAMBDA_EXECUTE under unauthenticated role
- Unauthenticated Identities: Has Enable access to unauthenticated identities checked
- In Lambda, for function GetProcess(), has ExecutionRole: ALLOW_LAMBDA_EXECUTION
with all these, when I execute the same using my iPhone app (with simulator), I get this error.
"x-amzn-errortype" = **AccessDeniedException**;
-[AWSJSONResponseSerializer responseObjectForResponse:originalRequest:currentRequest:data:error:] | Response body:
**{"Message":"The role defined for the function cannot be assumed by Lambda."}**
Am I missing anything here?