-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(appsync): Fails with error "Only one resolver is allowed per field." in using 1.91.0 #13238
Comments
Hey there, so this is a result of the fix we did for #12635. There seems to be an issue with AppSync in CFN where ordering of delete/create operations causes duplicates to occur when replacing existing resolvers. I created this issue to track that: #13269 Right now they only workaround is to remove the resolver resources, deploy that to the stack, then add them back and redeploy. If you want to avoid downtime, you can spin up a parallel instance of the GraphqlAPI construct in a new stack, point your clients to that, and then remove the old one. |
Parallel instances won't work if you use API keys, as you cannot specify the key value when creating them. |
Closing this, any concerns with this should go to #13269 |
|
I had this issue for the last 2 days... My structure is several microservices expose their schemas to AppSync which then compiles them to gether with their resolvers into one. My bug was caused by one microservice that was trying to create the resolver's datasource. The fix was to ensure that no microservices is trying to create the datasources. Create is only done by Appsync API.. Might be worth looking into if you are also facing this. |
❓ General Issue
The Question
After upgrading to 1.91.0 from 1.90.1 my AppSync API is failing with the error:
My API has a mix of templated resolvers and a Lambda, none are duplicated as far as I can tell. Here is the relevant code:
--
Environment
Other information
The text was updated successfully, but these errors were encountered: