![]() The ParentFunction receives the response and handles the job accordingly.Īs in this example, let us assume that the ParentFunction is going to call the ChildFunction with a payload of ProductName, Quantity, and the UnitPrice of that product. Once the execution of the ChildFunction is completed, it returns a response, which is then passed on to the ParentFunction. If you consider the above architecture diagram, you can see that we have an AWS lambda function – the ParentFunction, which assumes a specific role from the IAM ( Invoke Other Lambda Function) and then calls another lambda function – the ChildFunction with a payload. Another scenario may be to execute a second lambda function several times by using different parameters.įor the sake of this article, we will consider a typical retailer application, in which we can purchase different products from a retailer site using a lambda function. This is a useful scenario in which we may need to execute a second lambda function based on the outcome of some previous logic. In this article, I am going to explain how to create an AWS Lambda function and then call this function from another Lambda function within the same region.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |