DEV Community

Cover image for Synchronous Invocations For lambda Using cloudshall
vaibhavi_shah for AWS Community ASEAN

Posted on

Synchronous Invocations For lambda Using cloudshall

When you invoke a function synchronously, Lambda runs the function and waits for a response. When the function completes, Lambda returns the response from the function's code.

Lambda - Synchronous Invocations - Services

- User Invoked:
Elastic Load Balancing (Application Load Balancer)
Amazon API Gateway
Amazon CloudFront (Lambda@Edge)
Amazon S3 Batch

- Service Invoked:
Amazon Cognito
AWS Step Functions

- Other Services:
Amazon Lex
Amazon Alexa
Amazon Kinesis Data Firehos

Demo:

Step-1:

Go to the lambda function and go to the create function.

Step-2:

Use blue-print and search for hello-world nodejs.

Hellow-world nodejs

Step-3:

Configure the function as follow and create function.

Create test function

Step-4:

Go to the cloud shell service and check aws cli version as follow.

Cloudshell

Step-5:

Following command list all the function.

List the function

Step-6:

Invoke the function from cli or cloud shell

Invoke the function

Step-7:

Cat the response file to view the response from lambda function

Top comments (0)