Skip to content

Demonstration of using Terraform to deploy AppSync (with Schema and Resolvers)

Notifications You must be signed in to change notification settings

SketchingDev/terraform-appsync-demo

Repository files navigation

Deploying AWS AppSync using Terraform

This project accompanies a blog article I wrote demonstrating how to use CloudFormation with Terraform to deploy AppSync components that are not yet supported by Terraform's AWS Provider.

It will deploy an API with the ability to create and list people.

Deployment

The default variables will deploy an AppSync API called 'demo-people-api' with a authentication key that expires after 7 days.

$ terraform init
$ terraform apply

Querying the API

You can either query the API via AWS's AppSync page under 'Queries' or use GraphQL Playground. However if querying via GraphQL Playground then be sure to define the API key in the HTTP Header pane like so:

{
  "x-api-key": "KEY HERE"
}

About

Demonstration of using Terraform to deploy AppSync (with Schema and Resolvers)

Topics

Resources

Stars

Watchers

Forks

Languages