-
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
[aws-appsync] Deploy fails when trying to change datasource #11522
Comments
We ran into this issue as well. Detaching the resolver manually in the console partially helped, because the new ds and resolver were created, but not attached to the field. |
hm.. from your comment
I would assume the problem lies in the fact that the CFN template isn't updating in the order we might want. I'm not an expert in the ordering of CFN updates but maybe someone who has more expertise in this domain can take this for a swing. |
Yeah, this is the case. Running into this again while trying to revert #12635... Any idea how we can move this forward? |
) * Revert to old behavior of allowing a data source to create a resolver as UNIT resolvers stem from data sources. * Maintaining new behavior of having `GraphqlApi` create resolvers as PIPELINE resolvers stem from the `GraphqlApi` itself Fixes #12635 Fixes #11522 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
) * Revert to old behavior of allowing a data source to create a resolver as UNIT resolvers stem from data sources. * Maintaining new behavior of having `GraphqlApi` create resolvers as PIPELINE resolvers stem from the `GraphqlApi` itself Fixes #12635 Fixes #11522 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
When trying to remove a datasource and create a new one, the deploy fails with the message: Only one resolver is allowed per field.
Reproduction Steps
The first step is to deploy a stack with a simple data source:
then when trying to change the datasource, deploying this:
it fails.
What did you expect to happen?
it should update the datasource and resolver, but apparently it's not deleting the old resolver (or not doing it in order), and the deploy is failing
I was trying to update the resolver, but it only works when I deploy twice, first time deleting the old one, and the second time creating the new one
What actually happened?
Deploy fails with message Only one resolver is allowed per field.
Only one resolver is allowed per field. (Service: AWSAppSync; Status Code: 400; Error Code: BadRequestException; Request ID: 3ab24c35-8cae-43c7-9abd-a506f6879f0c; Proxy: null)
Environment
CDK CLI Version: 1.74.0
Node.js Version:10.16.2
OS: macos 10.15.7
Language: javascript
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: