title: How to invoke Lambda function with Amplify using GraphQL API?
body: <p>I believe the default data source when creating GraphQL API is DynamoDB, I would like to set it to Lambda function instead.</p>
  
  <p><strong>Is there a way to do this with Amplify?</strong></p>
  
  <p>if not, <strong>what is the workaround?</strong></p>
  
  <p>I found this <a href="https://docs.aws.amazon.com/appsync/latest/devguide/tutorial-lambda-resolvers.html" rel="nofollow noreferrer">AWS tutorial</a> online that states:</p>
  
  <blockquote>
    <p>we'll show you how to write a Lambda function that performs business logic based on the invocation of a GraphQL field operation.</p>
  </blockquote>
  
  <p>but I couldn't use this with Amplify.</p>