Mastering AWS AppSync Lambda Resolvers

Mastering AWS AppSync Lambda Resolvers
Mastering AWS AppSync Lambda Resolvers

CLOUD LABS

Mastering AWS AppSync Lambda Resolvers

In this Cloud Lab, you’ll learn to create GraphQL APIs on AWS AppSync with Lambda data sources and resolvers.

13 Tasks

intermediate

3hr

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

The ability to set up your own GraphQL API using the AWS AppSync
Working knowledge of Lambda resolvers
Thorough understanding of resolvers in AWS AppSync
Hands-on experience using the Lambda resolvers for services such as S3 that AppSync doesn’t directly support

Technologies
Lambda logoLambda
AppSync
S3 logoS3
Skills Covered
GraphQL Query Writing
API Development
Cloud Lab Overview

The AWS AppSync service allows you to create and manage serverless GraphQL and Pub/Sub APIs. GraphQL APIs allow for querying data from multiple data sources using a single endpoint, whereas Pub/Sub APIs allow for real-time data sharing using serverless web socket connections.

You’ll start this Cloud Lab by creating an AppSync API and setting up a Lambda function as its data source. You’ll also go over how to use the Apache Velocity Template Language (VTL) templates and the AWS-provided JavaScript templates as resolvers to resolve GraphQL queries. You’ll use an S3 bucket as the data store for the Lambda data source to simulate how you can use other AWS and external resources not directly supported by AppSync as data sources for your GraphQL API. At the end of the Cloud Lab, you’ll test your GraphQL AppSync API with a full-stack client application.

The following is a high-level architecture diagram of the infrastructure you’ll create in this Cloud Lab:

Architecture diagram
Architecture diagram

By the end of this Cloud Lab, you’ll have had hands-on experience developing GraphQL APIs on AWS AppSync and gained a working knowledge of the various resolvers you can use to resolve queries for your AppSync GraphQL API.

Cloud Lab Tasks
1.Introduction
Getting Started
2.Lambda Resolver Function
Create a Lambda Resolver Function
3.Create and Configure the AppSync GraphQL API
Create AppSync API
Create Schema for AppSync API
Create an AppSync JavaScript Template Resolver Functions
Create an AppSync VTL Resolver Function
Create Resolvers for the AppSync API
4.Testing the GraphQL API
Run Queries on the AppSync API
Testing API Using a Client Application
5.Using the Lambda Resolver as a Proxy
Use an S3 Bucket as Data Source Using the Lambda Resolver
Testing Updated API Using the Client Application
6.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image