AppSync is a managed GraphQL service from AWS. If we tried Amplify we love the ease that Amplify creates the whole GraphQL schema, datasources and all the resources that are involved. When we build the same things using other frameworks - like CDK we need to make all the resources from scratch and also all the resolvers. It takes a lot of code and work. What if I told you that there is a level 3 constructor that does everything for you.

I will show you how to build your backend with CDK and AppSync and then integrate the whole backend with AWS Amplify and use the Amplify libraries to invoke those APIs and also generate the models in the client automatically based on the graphql schema.

Get the code: https://github.com/mavi888/cdk-amplify-project-demo
3rd level constructor : https://github.com/kcwinner/cdk-appsync-transformer

This is the third video on a series where I’m building all the front-end infrastructure as CDK code, in a separate stack and using Amplify libraries. So we can get the best of both worlds.

#graphql #aws

Create A GraphQL Endpoint and Datasources in The Simplest Way Possible - AppSync with CDK
3.35 GEEK