DEV Community

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

Posted on

1

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

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay