Closed shweta-codeprism closed 3 years ago
I'm having the same problem while trying to use @aws-amplify/api-graphql package in lambda with IAM authentication. After some code hunting it seems to me that handling of AWS_IAM credentials from AWS.config.credentials was lost with version 761a88433d7d49e2cf5d3ae81b12bc40060957fa while this version a047ce73abe98c3bf82e888c3afb4d2f911805f3 still had code responsible for reading credentials from AWS.config.credentials. It seems to me that the Auth module used later on just doesn't care about those unless I'm missing something.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.
Hi :wave: Sorry this was auto-closed by stale bot. We are working towards preventing this from happening in the future. Please let us know if you are still experiencing this issue and in need of assistance.
Hi 👋 Closing this as we have not heard back from you. If you are still experiencing this issue and in need of assistance, please feel free to comment and provide us with any information previously requested by our team members so we can re-open this issue and be better able to assist you. Thank you!
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help
channels or Discussions for those types of questions.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
GraphQL API
Amplify Categories
auth
Environment information
Describe the bug
I am using NextJS. And have set AWS_IAM as the default Authentication mode. When I am querying data as follows:
in getStaticProps(), its throwing error
Error: No credentials.
However, it works fine for getStaticPaths().
Expected behavior
As AWS_IAM is the default authMode, it should give me the list result back just like in getStaticPaths.
Reproduction steps
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response