amazon web services - Is it possible to set up an AWS API Gateway endpoint for a Lambda function, using the AWS API? -


i exposing aws lambda function public http requests setting aws api gateway endpoint pointing it.

there 2 parts this:

  • create , upload aws lambda function
  • set api gateway point http endpoint lambda function

i want both parts using api calls instead of web interface. can first part using aws sdk , aws cli.

however, second part, i'm stuck. haven't found mention of api gateway when looking through aws sdk node.js, or aws cli

is there way set api gateway endpoint lambda function, programatically using aws api?

yes, it's possible via aws's api set amazon api gateway endpoints aws lambda functions.

while aws sdk javascript in node.js , aws cli haven't supported amazon api gateway yet, can set them using amazon api gateway rest api without official sdk. in case, use these apis:

  1. restapi:create
  2. resource:create
  3. method:put
  4. integration:put
  5. integrationresponse:put
  6. methodresponse:put

you might want use 3rd party libraries integrate amazon api gateway aws lambda such jaws-stack/jaws or r7kamura/fluct.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -