aws-cdk-lib: Changing logical ID(human readable part) of AppSync resolver result in error upon deploy (CDK) #21350
Labels
aws-cdk-lib
Related to the aws-cdk-lib package
bug
This issue is a bug.
duplicate
This issue is a duplicate.
Describe the bug
When I change the
id
of AppSync Resolver and deploy (cdk deploy
) I receive an errorOnly one resolver is allowed per field. (Service: AWSAppSync; Status Code: 400; Error Code: BadRequestException; Request ID: fd68b0ff-38a5-4149-a797-138baf6a836c; Proxy: null
Expected Behavior
I would expect the resolver with the new ID to be attached to the GraphQL field(operation)
Current Behavior
The deploy fails with error:
Reproduction Steps
Create a new resolver
new appsync.Resolver(this.scope, "SuperResolver", {...})
then change just the
id
of the resolver from "SuperResolver" to "GreatResolver":new appsync.Resolver(this.scope, "GreatResolver", {...})
and deploy.
You should get the same/similar error: Only one resolver is allowed per field
Possible Solution
No response
Additional Information/Context
Appsync library: "@aws-cdk/aws-appsync-alpha": "^2.29.1-alpha.0"
CDK library: "aws-cdk-lib": "2.29.1",
CDK CLI Version
2.29.1
Framework Version
No response
Node.js Version
16
OS
Linux Ubunty
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: