Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amplifyconfiguration.dart keeps pulling the wrong api key from the amplify console #1087

Closed
4 tasks done
superSaen42 opened this issue Jan 6, 2024 · 3 comments
Closed
4 tasks done
Labels
graphql Graphql/AppSync API pending-response An issue is pending response from the issue requestor pending-triage An issue that is pending triage

Comments

@superSaen42
Copy link

superSaen42 commented Jan 6, 2024

Before opening, please confirm:

App Id

d3q8xhp8f5zb3m

Region

us-east-1

Environment name

devclone

Figma File Version (if applicable)

No response

Amplify CLI Version

12.10.0

If applicable, what version of Node.js are you using?

No response

What operating system are you using?

Mac

Browser type?

Chrome

Describe the bug

My Appsync api key recently expired so I rotated the key in the appsync UI. The change is reflected in my amplify console because I can see the new API key when I go to the graphQL settings page in the Data section. However whenever I run amplify pull in my local terminal I get the old API key.

Expected behavior

When changing the api key in appsync I should be able to run amplify pull and the new api key should render in my amplifyconfiguration.dart file.

Reproduction steps

  1. Change api key in Appsync UI
  2. Amplify Updates api key for datastore
  3. run amplify pull locally
  4. see amplifyconfiguration.dart for new api key

Project Identifier

ca03b9303aff08e253440a24ab3d2e24

Additional information

No response

@superSaen42 superSaen42 added the pending-triage An issue that is pending triage label Jan 6, 2024
@ykethan
Copy link
Member

ykethan commented Jan 25, 2024

Hey @superSaen42, manual changes on the console does not update the local pull as Amplify updates/creates resources using cloudforamtion template. The API key will need to updated via Amplify CLI or Studio GraphQL setting then run push/deploy to update the API key references.

@ykethan ykethan added pending-response An issue is pending response from the issue requestor graphql Graphql/AppSync API labels Jan 25, 2024
@cwoolum
Copy link
Contributor

cwoolum commented Jul 26, 2024

Closing due to inactivity. Please re-open if necessary.

@cwoolum cwoolum closed this as completed Jul 26, 2024
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graphql Graphql/AppSync API pending-response An issue is pending response from the issue requestor pending-triage An issue that is pending triage
Projects
None yet
Development

No branches or pull requests

3 participants