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.
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
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"
}