title: Importing Swagger API to AWS API Gateway using command line tool
body: <p>Amazon published this news: <a href="https://aws.amazon.com/about-aws/whats-new/2016/04/amazon-api-gateway-supports-swagger-definition-import/">https://aws.amazon.com/about-aws/whats-new/2016/04/amazon-api-gateway-supports-swagger-definition-import/</a>, saying that now it is possible to import Swagger API using <code>aws</code> command line tool.
  I am using:</p>
  
  <pre><code>aws --version
  aws-cli/1.10.20 Python/2.7.9 Linux/3.16.0-4-amd64 botocore/1.4.11
  </code></pre>
  
  <p>But I can't find a command in <code>aws apigateway help</code> that would allow me to import or update API using swagger file.</p>
  
  <p>Currently, we're using <a href="https://github.com/awslabs/aws-apigateway-importer">aws-apigateway-importer</a> for this. Would really great to swtich to <code>aws</code> only.</p>
  
  <p>Thanks.</p>