question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Where should I add my custom resolver CloudFormation config?

See original GitHub issue

I’m following the steps here https://aws-amplify.github.io/docs/cli/graphql#add-a-custom-resolver-that-targets-an-aws-lambda-function but in the steps that says: Add the function as an AppSync data source in the stack’s Resources block.. Ok, but, and the template? which one? amplify\backend\api\myapi\stacks\CustomResources.json or should I add a new one in _amplify\backend\api\myapi\stacks_? Obviously, it is not in the Lambda’s template because of the parameters S3DeploymentBucket and S3DeploymentRootKey are not injected/passed to the Lambda’s template, right?

I think the documentation is not clear about the process and should be updated accordingly.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
ajenkinscommented, Sep 22, 2019

I agree that the docs for adding a custom resolver should include a link to https://aws-amplify.github.io/docs/cli-toolchain/graphql#api-category-project-structure . In fact, I really wish I had read about the API Category Project Structure a long time ago. Until I read that section, I had no understanding of what amplify push was actually doing or how it worked. I think it would be a good idea to make that article much more prominent than it is now. You have to go really deep in the docs past a lot of advanced topics to find it right now, but it really should be one of the first things you read when learning about Amplify.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS::AppSync::Resolver - AWS CloudFormation
The AWS::AppSync::Resolver resource defines the logical GraphQL resolver that you attach to fields in a schema. Request and response templates for resolvers ......
Read more >
API (GraphQL) - Overwrite & customize resolvers - Amplify Docs
Learn how to overwrite or add custom resolvers with Amplify. - AWS Amplify ... Add a field to your schema.graphql that will invoke...
Read more >
Stack Config — Sceptre 3.2.0 documentation
The path to the CloudFormation, Jinja2 or Python template to build the Stack from. The path can either be absolute or relative to...
Read more >
Top 10 Serverless Deployment Errors (and How to Fix Them)
You can find a quick link to the CloudFormation console in the Deploy view of your stack: Alternatively, you can open the AWS...
Read more >
I am unable to deploy a workspace on AWS using Quickstart ...
How do I resolve problems when deploying a workspace with AWS Quickstart cloud ... Please add the name of your S3 bucket that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found