AWS training in Noida-Skywebcom

Page 1

How lambda is connected to the gateway of API?

 The first way for connecting lambda to API gateway is through the lambda console. Go to lambda > open ‘My function’ > click on tab ‘Trigger’ where you can create or add a new trigger.  Add a trigger > choose API and name it as per your wish > give resource a name > specified the GET method > deployment stage where you’ll have production deployment or staging > click on open security and choose open so that the API is available for everyone. After its submission your work is done and this is the first way for connection lambda to API gateway. The second way of connecting lambda to API gateway is given below.

 Use API gateway console instead of lambda console > create new API give it any name.  It allows the configuration of resources as well as stages or authorizers or models > create a new resource give it a name > add a GET method > click ‘OK’.  Choose the integration type; it can be lambda function, HHTP proxy or mock integration > pick the region > name the function > click save and ask if it’s ok to add permission to invoke the lambda function and you’ll have an overview of the requests.  Now, go to action > click deploy API > create a new stage for it give it another name for the production environment and give a deploy description & API gateway will give another URL.


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.