The Amazon API Gateway Swagger Exporter lets you export API specification from existing Amazon API Gateway APIs in a Swagger API representation.
This tool was inspired by Amazon API Gateway Importer
This tool requires the AWS CLI. Download and configure following instructions to set up your system for accessing your AWS account.
Alternatevly, you can use environment variables to provide AWS access credentials and AWS region. Environment variables override AWS CLI configuration and can be useful for scripting. The following variables are supported: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_DEFAULT_REGION.
Build with mvn assembly:assembly
./aws-api-export.sh --api API_ID
./aws-api-export.sh --api API_ID --format json --output FILENAME.json
./aws-api-exporter.sh
For Windows environments replace ./aws-api-export.sh
with ./aws-api-export.cmd
in the examples.