Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 876 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 876 Bytes

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