Skip to content

bustle/api-gateway-copy-method

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS API Gateway does not have a feature that allows you to copy settings from one method to another. This cli fixes that. Super useful when you have many similar methods like OPTIONS requests for CORS.

Install

npm install -g api-gateway-copy-method

###Usage

api-gateway-copy-method <apiName> <sourcePath> <sourceMethod> <destPath> <destMethod>

Example: api-gateway-copy-method "Blog API" /posts/{id} GET /blogPosts/{id} GET

Important Notes:

  • destPath must already exist in the UI
  • destMethod must not exist. An error will be thrown if it does.
  • cacheNamespace is NOT copied between methods. First off, this is not settable in the current AWS web UI. Second it seems unlikely you would want to share cache namespaces between methods.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published