AppSync API with JavaScript resolver

Open in Gitpod

Architecture

AppSync

Requirements

  • An S3 bucket to use as the backend for terraform

Initialize the working directory

terraform init -backend-config="bucket=<YOUR_BACKEND_S3_BUCKET_NAME>"

Package the functions

Before running terraform apply, you need the packaged functions as zip files

bash package.sh

Deploy

terraform plan
terraform apply

Clean up

terraform destroy