Invoking Lambda using an external application

So far, we have seen how to integrate third-party services such as GitHub and Slack with Lambda functions. In this section, we will be looking into yet another simple example where an application is used to invoke a particular Lambda function.

The use case is pretty straightforward--we have a simple Node.js application that accepts any city's name as a parameter and as a response, provides you with the detailed weather conditions of that city. The city name is passed to the Lambda function in the form of an event using SNS. Once the event is provided to the function, it makes a call to an open sourced API called as openweather by passing the city name as a parameter. The API in turn returns the ...

Get Implementing AWS: Design, Build, and Manage your Infrastructure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.