aws-apigateway-exporter

0.0.3 • Public • Published

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 wow1veryID
Specify --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
{
    "swagger""2.0",
    "info"{
        "version""1.0.0",
        "title""Swagger Petstore",
......

LICENSE

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i aws-apigateway-exporter

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • aycabta