AWS AppSync Resolver

This page shows how to write Terraform and CloudFormation for AWS AppSync Resolver and write them securely.

code-icon

Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.

get-started-button

Terraform Example (aws_appsync_resolver)

Provides an AppSync Resolver.

Parameters

Example Usage (from GitHub)

github-iconjjoc007/poc-appsync-golang-mongo
resource "aws_appsync_resolver" "poc_mutation_create_person" {
  type              = "Mutation"
  api_id            = aws_appsync_graphql_api.poc_appsync_api.id
  data_source       = aws_appsync_datasource.poc_ds_person.name
  field             = "createPocPersonTable"
  response_template = file("resource/resolvers/person/person_create_response.vtl")

CloudFormation Example (AWS::AppSync::Resolver)

The AWS::AppSync::Resolver resource defines the logical GraphQL resolver that you attach to fields in a schema. Request and response templates for resolvers are written in Apache Velocity Template Language (VTL) format. For more information about resolvers, see Resolver Mapping Template Reference.

Note When you submit an update, AWS CloudFormation updates resources based on differences between what you submit and the stack's current template. To cause this resource to be updated you must change a property value for this resource in the CloudFormation template. Changing the Amazon S3 file content without changing a property value will not result in an update operation. See Update Behaviors of Stack Resources in the AWS CloudFormation User Guide.

Parameters

Frequently asked questions

What is AWS AppSync Resolver?

AWS AppSync Resolver is a resource for AppSync of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS AppSync Resolver?

For Terraform, the jjoc007/poc-appsync-golang-mongo source code example is useful. See the Terraform Example section for further details.