

Use a Lambda resolver to send the text message to Twilio using the Twilio SDK and will include the callback url for Twilio to respond to with status updates.Use a Dynamodb resolver to save the request.AppSync itself is configured with a Lambda Authorizer accepting a simple token for access and invokes a pipeline resolver to do 2 operations in the pipeline:.The (rudimentary) front end using the Amplify client library subscribes to AppSync for updates and sends the sms details to AppSync.The finished application will look like the feature image above. This guide will do just that, using Cloudformation entirely for the serverless backend. So using all the 3 – AppSync Twilio Amplify – to build a serverless text messaging system makes a lot of sense. AWS Amplify client side libraries make connecting to AppSync for operations and real time subscriptions trivial. Twilio is a great SMS texting service that is very fast and easy to setup. AppSync is AWS’ GraphQL offering – and it is an absolutely excellent service for building serverless applications because of the power of AppSync resolvers – which are extremely flexible integrating with Dynamodb and Lambda and allows for easy implementation of complex GraphQL schema operations.
