From the course: Complete Guide to Serverless Web App Development on AWS
Unlock this course with a free trial
Join today to access over 24,600 courses taught by industry experts.
Creating a simple API with AppSync and AWS CDK - Amazon Web Services (AWS) Tutorial
From the course: Complete Guide to Serverless Web App Development on AWS
Creating a simple API with AppSync and AWS CDK
- [Instructor] Now that you have your graphql schema, it's time to create your up sync API. Since we are using amplify graphql directives in our schema, we cannot use the standard up sync level to construct. Instead, we need to use the amplify graphql API construct that is a level three construct designed to work with amplify graphical directives. So you can find it in the construct hub, and here is the site and you can basically copy here and install it in your CDK project. So let's do that. Let's run that command. That will install the construct for us. And then we can start creating our amplify stack. Great. Now it's ready. Let's go into our leave and create here, an appsync-stack.ts And now we can start working on this new stack. So let's bring this here in order to start working and let's bring the basic imports that we need. We also will define a props because we'll need it in a second. So let's add this one at the beginning. And now we can start working on our API. So let's…
Contents
-
-
-
-
-
-
-
-
(Locked)
Introduction to GraphQL4m 5s
-
(Locked)
Introduction to AppSync3m 42s
-
(Locked)
Challenge: Create a cognito userpool, client and identity pool2m 26s
-
(Locked)
Solution: Create a cognito userpool, client and identity pool5m 41s
-
(Locked)
Challenge: Host the test WebApp with Amplify1m 49s
-
(Locked)
Solution: Host the test WebApp with Amplify10m 32s
-
(Locked)
Challenge: Add authentication using cognito to the webapp1m 53s
-
(Locked)
Solution: Add authentication using cognito to the webapp5m 41s
-
(Locked)
Amplify GraphQL Directives2m 33s
-
Create the GraphQL Schema4m 56s
-
(Locked)
Creating a simple API with AppSync and AWS CDK7m 39s
-
(Locked)
Deploying and testing your AppSync API3m 47s
-
(Locked)
Integrating the API into your webapp9m 55s
-
(Locked)
Adding a function as a datasource14m 35s
-
(Locked)
Challenge: Integrating the new function in the front end1m 21s
-
(Locked)
Solution: Integrating the new function in the frontend5m 40s
-
(Locked)
Progress check: Web Apps with GraphQL APIs1m 54s
-
(Locked)
-
-
-