title: CloudFormation to Configure API Gateway Method to use Cognito Authorizer
body: <p>I'm trying to define API Gateway resources using CloudFormation. Specifically, I'm attempting to create a template for an API Gateway Resource Method that authenticates using Cognito. I've created the Authorizer, and using the console I can perform this configuration without issue (see image attached). I just can't find a way to specify the API method request authorization using the Cognito user pool. It's driving me crazy. As far as I can see, no documentation covers this.</p>
  
  <p>Does anyone know if this is possible, and if so, how to do it? I realize I can achieve this using Swagger but I'm not looking forward to re-defining all of my API Gateway resources in Swagger vs. CloudFormation.</p>
  
  <p>Thanks in advance!</p>
  
  <p><a href="https://i.stack.imgur.com/U97Bs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U97Bs.png" alt="Method Authorization Configuration in Console"></a></p>