Create AWS AppSync API With AWS CDK

The guide demonstrates creation of AWS AppSync API & schema with AWS CDK

Sunday, October 27, 2019

This guide is part of Managing AWS AppSync With AWS CDK guide.
>> API & Schema
Data Source & Resolver
IAM Authentication

API

The authentication type is set to the AWS IAM which will be expanded on in the next section. AWS CloudWatch logging is set via setting the logConfig property. A dedicated CloudWatch role will be created to be assumed by AppSync service to have access to push logs into CloudWatch.

Schema

Schema defines simple type Output which can be queried via method getOutput.

Closing Notes

We defined AWS AppSync API and schema definition. In next section we will define the data source and resolver. Further information about configuration of the API and schema can be found at
https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-appsync.CfnGraphQLApi.html
https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-appsync.CfnGraphQLSchema.html