Build a GraphQL API with AWS CDK and AppSync
Learn how to build a fully managed, serverless GraphQL API with TypeScript and AWS CDK in hours, not days. Leverage infrastructure as code and AWS services to save time and enhance flexibility.
Build a fully managed, serverless GraphQL API powered by TypeScript and AWS CDK in a matter of hours, not days.
AWS CDK gives us the power to go all-in with infrastructure as code for AWS. With it, we can create a full GraphQL API with AppSync, a database with DynamoDB, serverless functions with Lambda, and much more.
In this course, you will learn how to do all of the above from your command line and code editor, which will save you time and give you greater flexibility.
Want to delete your stack? That’s fine, just run
cdk destroy
and
all of the resources are gone. Changed your mind? Just deploy the stack again and they all come back.
AWS CDK makes it that easy.
And since we are working from the command line and our code editor, we will take advantage of TypeScript and other third-party libraries to improve our developer experience.
So stop wasting time in the AWS console, check out this course, and learn how to leverage infrastructure as code to your advantage.
Serverless + GraphQL gives you a lot of power but one area that you can find yourself lost with is debugging the stack when something goes wrong.
Visualizing your problem can give you just the context that you need to fix the issue. You’ll learn how to utilize AWS X-Ray to do just that and fix slow queries
AWS free tier is amazing for building out projects as you learn but in many services, you can be automatically kicked out of the free tier for various reasons.
That is why it’s important to set up a billing alarm if this happens.
What this 4 minute micro-course to keep your wallet safe:
Use AWS Billing & Cost Management Dashboard to keep your AWS bill to minimum
You will learn a productive workflow for creating and maintaining a GraphQL API with AWS AppSync through the Cloud Developer Kit. The general flow that you will get used to is: updating the GraphQL schema, deploy necessary resources in AWS with CDK, implement the necessary logic inside of a Lambda function (by reading/updating DynamoDB), redeploy, debug/test/execute queries and mutations, repeat. ????
Through this workflow, you’ll also learn:
Course Content
Create an AWS CDK Stack From the Command Line
Deploy a CDK stack to AWS
Create an AWS CDK AppSync GraphQL API
Create an API Key with AWS CDK AppSync
Connect an AWS Lambda Data Source to an AppSync GraphQL API
Create a DynamoDB Table in an AWS CDK App
Read Data From a DynamoDB Table In an AWS Lambda Resolver
Generate TypeScript Types From a GraphQL Schema
Perform a GraphQL Mutation with an AWS Lambda Function
Reduce the Latency of Your AWS Lambda Functions
Query for AWS DynamoDB Items by ID With an AppSync GraphQL API
Refactor AWS Lambda Functions to Use Arm/Graviton2 Architecture in CDK
Use AppSync Logging and AWS X-Ray to Debug Performance Issues
Update an AWS DynamoDB Item Using a Third-Party Library In a Lambda Function
Add a GraphQL Subscription to an AWS AppSync API
Delete and Restore an AWS CDK Stack