Where should I add my custom resolver CloudFormation config?
See original GitHub issueI’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:
- Created 5 years ago
- Reactions:5
- Comments:13 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.@zjullion You should be able to reference the ApiId directly from the stacks paramters. Here is an example:
The parameter definition that you can add to your template:
Example usage of the parameter: