Create an appsync api and authenticate all request with AWS Cognito User Pools.
This sample projects demonstrates how to use AWS Cognito to authenticate an AWS Appsync API with lambda resolvers.The same concept can be applied to vtl resolvers as well.
This pattern deploys one appsync api, with a direct lamda resolver.