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

Outdated pattern: AppSync to Lambda #969

Closed
csbszb opened this issue Jan 10, 2023 · 1 comment
Closed

Outdated pattern: AppSync to Lambda #969

csbszb opened this issue Jan 10, 2023 · 1 comment

Comments

@csbszb
Copy link

csbszb commented Jan 10, 2023

Hey all,

I updated my CDK to the latest version, 2.59.0, and this TypeScript pattern is not working anymore: https://github.com/aws-samples/serverless-patterns/blob/main/appsync-direct-lambda-resolver/cdk/lib/main.ts

In the current version, the datasource.createResolver method expects the first parameter to be an id: string.
I provided the following ${upperFirst(typeName)}${upperFirst(fieldName)}Resolver; however, when I'm deploying the stack, I get the following error: Only one resolver is allowed per field.

Do you have a working example for this use case? 🙏

@csbszb
Copy link
Author

csbszb commented Jan 10, 2023

This one solved it in case someone else bumps into this issue: aws/aws-cdk#13269 (comment)

@csbszb csbszb closed this as completed Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant