6
votes

Amazon published this news: https://aws.amazon.com/about-aws/whats-new/2016/04/amazon-api-gateway-supports-swagger-definition-import/, saying that now it is possible to import Swagger API using aws command line tool. I am using:

aws --version
aws-cli/1.10.20 Python/2.7.9 Linux/3.16.0-4-amd64 botocore/1.4.11

But I can't find a command in aws apigateway help that would allow me to import or update API using swagger file.

Currently, we're using aws-apigateway-importer for this. Would really great to swtich to aws only.

Thanks.

2

2 Answers

6
votes

Yes, as mentioned previously, the command is import-rest-api.

aws apigateway import-rest-api

If your CLI doesn't include this operation, please update to the latest version of the AWS CLI.

Hope this helps.

Best,

Jurgen, API Gateway