{"action":"created","issue":{"url":"https://api.github.com/repos/danilop/LambdAuth/issues/40","repository_url":"https://api.github.com/repos/danilop/LambdAuth","labels_url":"https://api.github.com/repos/danilop/LambdAuth/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/danilop/LambdAuth/issues/40/comments","events_url":"https://api.github.com/repos/danilop/LambdAuth/issues/40/events","html_url":"https://github.com/danilop/LambdAuth/issues/40","id":153007085,"number":40,"title":"NotAuthorizedException occurred when calling the SetIdentityPoolRoles ","user":{"login":"luandro","id":693728,"avatar_url":"https://avatars.githubusercontent.com/u/693728?v=3","gravatar_id":"","url":"https://api.github.com/users/luandro","html_url":"https://github.com/luandro","followers_url":"https://api.github.com/users/luandro/followers","following_url":"https://api.github.com/users/luandro/following{/other_user}","gists_url":"https://api.github.com/users/luandro/gists{/gist_id}","starred_url":"https://api.github.com/users/luandro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luandro/subscriptions","organizations_url":"https://api.github.com/users/luandro/orgs","repos_url":"https://api.github.com/users/luandro/repos","events_url":"https://api.github.com/users/luandro/events{/privacy}","received_events_url":"https://api.github.com/users/luandro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-04T13:08:20Z","updated_at":"2016-05-04T13:18:00Z","closed_at":null,"body":"Everything else seems to have worked correctly but I'm getting this error which I can't figure out. Seems to be a duplicate of #4, but he doesn't really explain how he solved it.\r\n\r\n```\r\nA client error (NotAuthorizedException) occurred when calling the SetIdentityPoolRoles operation: Access to Role 'arn:aws:iam::****-****-****:role/Cognito_LambdAuthUnauth_Role' is forbidden. \r\n```\r\n\r\nAnd I believe because of it I get many errors when creating the Lambda calls\r\n\r\n```\r\nA client error (ValidationException) occurred when calling the CreateFunction operation: 1 validation error detected: Value 'arn:aws:iam::****-****-****:role/LambdAuthChangePassword' at 'role' failed to satisfy constraint: Member must satisfy regular expression pattern: arn:aws:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+\r\n\r\nA client error (ValidationException) occurred when calling the CreateFunction operation: 1 validation error detected: Value 'arn:aws:iam::****-****-****:role/LambdAuthCreateUser' at 'role' failed to satisfy constraint: Member must satisfy regular expression pattern: arn:aws:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+\r\n```\r\n\r\nIs there something I need to setup in IAM roles?"},"comment":{"url":"https://api.github.com/repos/danilop/LambdAuth/issues/comments/216860830","html_url":"https://github.com/danilop/LambdAuth/issues/40#issuecomment-216860830","issue_url":"https://api.github.com/repos/danilop/LambdAuth/issues/40","id":216860830,"user":{"login":"luandro","id":693728,"avatar_url":"https://avatars.githubusercontent.com/u/693728?v=3","gravatar_id":"","url":"https://api.github.com/users/luandro","html_url":"https://github.com/luandro","followers_url":"https://api.github.com/users/luandro/followers","following_url":"https://api.github.com/users/luandro/following{/other_user}","gists_url":"https://api.github.com/users/luandro/gists{/gist_id}","starred_url":"https://api.github.com/users/luandro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luandro/subscriptions","organizations_url":"https://api.github.com/users/luandro/orgs","repos_url":"https://api.github.com/users/luandro/repos","events_url":"https://api.github.com/users/luandro/events{/privacy}","received_events_url":"https://api.github.com/users/luandro/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T13:17:59Z","updated_at":"2016-05-04T13:17:59Z","body":"This is what the guys from #4 said he did to fix it. But I can't really make sense of it.\r\n\r\n> I noticed that the IAM roles associated with my Cognito identiy pool didn't look right so I updated the role associations to what I believe it's supposed to be be and it started working! :)\r\n"}}