AWS API Gateway Exporter
Installation
At the start, you need to set up ~/.aws/credentials
and ~/.aws/config
what aws-sdk
read:
$ aws configure
Next, run it:
$ npm install -g aws-apigateway-exporter
Usage
If you run without options, it shows REST API list:
$ aws-apigateway-exporter Specify --rest-api option REST APIs:┌──────────────────┬────────────┐│ name │ ID │├──────────────────┼────────────┤│ Swagger Petstore │ wow1veryID │├──────────────────┼────────────┤│ api-test │ soIDmuchID │└──────────────────┴────────────┘
If you run with only --rest-api
option, it shows Stage list:
$ aws-apigateway-exporter --rest-api wow1veryIDSpecify --stage option Stages:┌──────┬────────┐│ name │ ID │├──────┼────────┤│ prod │ SuchID │└──────┴────────┘
If you run with --rest-api
and --stage
optins, it shows Swagger JSON:
$ aws-apigateway-exporter --rest-api wow1veryID --stage SuchID
LICENSE
MIT