AWS Amplify AppSync IAM 401


I’m getting GraphQLError: Request failed with status code 401

I followed the automatic configuration instructions from:

I tried looking, but there are a lack of resources for IAM. It looks like everything should be setup automatically, and done with the Amplify CLI after I put in the IAM access key and secret.

Is further setup required? Here is my code:

Could it also be because my GraphQL resolvers are not setup yet for ListKeywords?


I just changed ~/.aws/credentials and now it’s working.

Looks like even if you have project specific configuration via Amplify’s command line tools or ~/.awsmobile/aws-config.js, it still relies on ~/.aws

Leave a Reply