A collection of configuration templates for AWS AppSync as well as security controls for monitoring and protecting AWS AppSync configuration such as Config Rules, CloudWatch Alarms, EventBridge Rules, IAM policies, and more.

AppSync
AppSync GraphQL API Example

This template creates a new AWS AppSync GraphQL API `my-appsync-api`. It uses Cognito for authentication (user pool us-east-1_123456789)

CloudFormation
AppSync API Key

This template creates an API key and associates it with a new GraphQL API. You can optionally add a parameter to set key expiry

CloudFormation
AppSync API Cache

This template creates an ApiCache for a GraphQL API. The `ApiCache` resource is of type `AWS::AppSync::ApiCache` and has properties such as `Type` which is set to `SMALL`, `ApiCachingBehavior` which is set to `FULL_REQUEST_CACHING`, `Ttl` which is set to 1200, `TransitEncryptionEnabled` which is set to true, and `AtRestEncryptionEnabled` which is set to true.

CloudFormation
AppSync API with Cache Configuration

This template creates an AWS AppSync GraphQL API with API key authentication and configures a large cache with full request caching behavior.

Terraform
AppSync API with HTTP DataSource and Function

Creates an AWS AppSync GraphQL API with an HTTP data source and a function to handle requests and responses.

Terraform
AppSync API with AWS Cognito User Pool Authentication

Configures an AWS AppSync GraphQL API to authenticate via an Amazon Cognito User Pool.

Terraform
AppSync API with Logging Configuration

Configures logging for an AWS AppSync GraphQL API using an IAM role to push logs to CloudWatch.

Terraform
AppSync API with Web ACL Association

Associates a Web ACL with an AWS AppSync GraphQL API for enhanced security.

Terraform
AppSync GraphQL API with HTTP DataSource and Resolvers

Creates an AppSync GraphQL API with a schema for posts, an HTTP data source, and resolvers for querying and mutating posts.

Terraform
AppSync GraphQL API with Mutation Type

Creates an AWS AppSync GraphQL API and defines a Mutation type for posting data.

Terraform